Lines Matching defs:in
14 #include <netinet/in.h>
32 int getaddr(const char *hostname, struct sockaddr_in6 *in)
36 in->sin6_port = 0;
39 in->sin6_family = he->h_addrtype;
40 memcpy(in->sin6_addr.s6_addr, he->h_addr_list[0], he->h_length);
45 in->sin6_family = AF_INET6;
46 memset(in->sin6_addr.s6_addr, 0, 10);
47 in->sin6_addr.s6_addr[10] = 0;
48 in->sin6_addr.s6_addr[11] = 0;
49 memcpy(in->sin6_addr.s6_addr + 12, he->h_addr_list[0], he->h_length);