Lines Matching refs:AF_INET
101 if (family == AF_INET && in iface_check()
180 if (addr->sa.sa_family == AF_INET && in iface_allowed()
181 !iface_check(AF_INET, (struct all_addr *)&addr->in.sin_addr, ifr.ifr_name, NULL)) in iface_allowed()
250 addr.in.sin_family = AF_INET; in iface_allowed_v4()
341 addr.in.sin_family = AF_INET; in create_wildcard_listeners()
351 if ((fd = socket(AF_INET, SOCK_DGRAM, 0)) == -1 || in create_wildcard_listeners()
352 (tcpfd = socket(AF_INET, SOCK_STREAM, 0)) == -1) in create_wildcard_listeners()
378 if ((tftpfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) in create_wildcard_listeners()
394 l->family = AF_INET; in create_wildcard_listeners()
484 if ((daemon->options & OPT_TFTP) && iface->addr.sa.sa_family == AF_INET && iface->dhcp_ok) in create_bound_listener()
488 if ((new->tftpfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1 || in create_bound_listener()
668 if ((daemon->options & OPT_TFTP) && iface->addr.sa.sa_family == AF_INET && iface->dhcp_ok) in create_bound_listeners()
672 if ((new->tftpfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1 || in create_bound_listeners()
712 if (family == AF_INET) in random_sock()
752 if (addr_copy.sa.sa_family == AF_INET) in local_bind()
786 if (addr->sa.sa_family == AF_INET && in allocate_sfd()
844 addr.in.sin_family = AF_INET; in pre_allocate_sfds()
896 if (new->addr.sa.sa_family == AF_INET && in check_servers()
1120 if (parse_addr(AF_INET, saddr, &addr) == 0) in set_servers()
1123 source_addr.in.sin_family = AF_INET; in set_servers()
1228 if (parse_addr(AF_INET, token, &addr) == 0) in reload_servers()
1231 source_addr.in.sin_family = AF_INET; in reload_servers()
1291 for (l = daemon->listeners; l && l->family != AF_INET; l = l->next); in get_ifaddr()
1294 ifr.ifr_addr.sa_family = AF_INET; in get_ifaddr()