Searched refs:sock_in6 (Results 1 – 1 of 1) sorted by relevance
/third_party/toybox/toys/pending/ |
D | route.c | 97 static int get_addrinfo(char *ip, struct sockaddr_in6 *sock_in6) in get_addrinfo() argument 109 memcpy(sock_in6, result->ai_addr, sizeof(*sock_in6)); in get_addrinfo() 321 static void get_next_params_inet6(char **argv, struct sockaddr_in6 *sock_in6, struct in6_rtmsg *rt,… in get_next_params_inet6() argument 334 if (!get_addrinfo(argv[1], (struct sockaddr_in6 *) &sock_in6)) { in get_next_params_inet6() 335 memcpy(&rt->rtmsg_gateway, sock_in6->sin6_addr.s6_addr, sizeof(struct in6_addr)); in get_next_params_inet6() 350 struct sockaddr_in6 sock_in6; in setroute_inet6() local 356 memset(&sock_in6, 0, sizeof(struct sockaddr_in6)); in setroute_inet6() 366 if (get_addrinfo(targetip, (struct sockaddr_in6 *) &sock_in6)) in setroute_inet6() 370 memcpy(&rt.rtmsg_dst, sock_in6.sin6_addr.s6_addr, sizeof(struct in6_addr)); in setroute_inet6() 371 get_next_params_inet6(argv, &sock_in6, &rt, (char **)&dev_name); in setroute_inet6()
|