Lines Matching refs:family
251 static int find_address(int family, struct ifaddrs *if_address, in find_address() argument
261 tmp->ifa_addr->sa_family == family) { in find_address()
263 switch (family) { in find_address()
310 static int get_address(const char *if_name, int family, void *address) in get_address() argument
323 err = find_address(family, if_address, if_name, address); in get_address()
347 int family, addr_len; in main() local
410 family = AF_INET; in main()
424 family = AF_INET6; in main()
429 addr_send->sa_family = family; in main()
430 addr_recv->sa_family = family; in main()
432 fd = socket(family, SOCK_DGRAM, IPPROTO_UDP); in main()
457 ret = get_address(interface, family, address); in main()
464 printf("Binding to %s\n", inet_ntop(family, address, in main()