Lines Matching refs:sock_in6
72 static int get_addrinfo(char *ip, struct sockaddr_in6 *sock_in6)
84 memcpy(sock_in6, result->ai_addr, sizeof(*sock_in6));
310 static void get_next_params_inet6(char **argv, struct sockaddr_in6 *sock_in6, struct in6_rtmsg *rt, char **dev_name)
323 if (!get_addrinfo(*argv, (struct sockaddr_in6 *) &sock_in6)) {
324 memcpy(&rt->rtmsg_gateway, sock_in6->sin6_addr.s6_addr, sizeof(struct in6_addr));
338 struct sockaddr_in6 sock_in6;
344 memset(&sock_in6, 0, sizeof(struct sockaddr_in6));
354 if (get_addrinfo(targetip, (struct sockaddr_in6 *) &sock_in6))
358 memcpy(&rt.rtmsg_dst, sock_in6.sin6_addr.s6_addr, sizeof(struct in6_addr));
359 get_next_params_inet6(argv, &sock_in6, &rt, (char **)&dev_name);