Lines Matching refs:htons
221 addr.in6.sin6_port = htons(daemon->port); in iface_allowed_v6()
240 addr.in.sin_port = htons(daemon->port); in iface_allowed_v4()
277 addr.in6.sin6_port = htons(port); in create_ipv6_listener()
329 addr.in.sin_port = htons(daemon->port); in create_wildcard_listeners()
363 addr.in.sin_port = htons(TFTP_PORT); in create_wildcard_listeners()
462 iface->addr.in.sin_port = htons(TFTP_PORT); in create_bound_listeners()
501 port = htons(daemon->min_port + (port % ((unsigned short)ports_avail))); in random_sock()
576 addr->in.sin_port == htons(0)) in allocate_sfd()
582 addr->in6.sin6_port == htons(0)) in allocate_sfd()
632 addr.in.sin_port = htons(daemon->query_port); in pre_allocate_sfds()
641 addr.in6.sin6_port = htons(daemon->query_port); in pre_allocate_sfds()
788 addr.in.sin_port = htons(NAMESERVER_PORT); in set_servers()
790 source_addr.in.sin_port = htons(daemon->query_port); in set_servers()
799 addr.in6.sin6_port = htons(NAMESERVER_PORT); in set_servers()
801 source_addr.in6.sin6_port = htons(daemon->query_port); in set_servers()
901 addr.in.sin_port = htons(NAMESERVER_PORT); in reload_servers()
903 source_addr.in.sin_port = htons(daemon->query_port); in reload_servers()
912 addr.in6.sin6_port = htons(NAMESERVER_PORT); in reload_servers()
914 source_addr.in6.sin6_port = htons(daemon->query_port); in reload_servers()