Lines Matching refs:family
79 static int get_socket(int family, int proto) in get_socket() argument
83 fd = socket(family, proto == IPPROTO_TCP ? SOCK_STREAM : SOCK_DGRAM, in get_socket()
93 int family) in bind_device() argument
109 switch (family) { in bind_device()
250 int family_to_level(int family) in family_to_level() argument
252 switch (family) { in family_to_level()
262 static int join_mc_group(int sock, int ifindex, int family, void *addr, in join_mc_group() argument
273 ret = setsockopt(sock, family_to_level(family), MCAST_JOIN_GROUP, in join_mc_group()
278 switch (family) { in join_mc_group()
280 ret = setsockopt(sock, family_to_level(family), in join_mc_group()
284 ret = setsockopt(sock, family_to_level(family), in join_mc_group()
291 static int find_address(int family, struct ifaddrs *if_address, in find_address() argument
300 tmp->ifa_addr->sa_family == family) { in find_address()
302 switch (family) { in find_address()
341 static int get_address(const char *if_name, int family, void *address) in get_address() argument
354 err = find_address(family, if_address, if_name, address); in get_address()
379 int family; in main() local