Lines Matching refs:in_addr
101 static struct in_addr prefix2mask(unsigned int prefix) in prefix2mask()
103 struct in_addr mask; in prefix2mask()
119 static struct in_addr calc_network(const struct in_addr *ip, in calc_network()
120 struct in_addr *mask) in calc_network()
122 struct in_addr network; in calc_network()
130 static int is_in_subnet_ipv4(const struct in_addr *network, in is_in_subnet_ipv4()
131 const struct in_addr *mask, const struct in_addr *ip) in is_in_subnet_ipv4()
157 struct in_addr mask = prefix2mask(prefix); in get_ipv4_netmask()
199 static char *get_ipv4_broadcast(struct in_addr ip, unsigned int prefix) in get_ipv4_broadcast()
201 struct in_addr mask = prefix2mask(prefix); in get_ipv4_broadcast()
202 struct in_addr broadcast; in get_ipv4_broadcast()
219 static char *get_ipv4_net16_unused(const struct in_addr *ip, in get_ipv4_net16_unused()
222 struct in_addr mask, network; in get_ipv4_net16_unused()
516 struct in_addr lip, rip; in get_ipv4_info()
591 struct in_addr ip; in main()