Lines Matching refs:in_addr
1178 const char *xtables_ipaddr_to_numeric(const struct in_addr *addrp) in xtables_ipaddr_to_numeric()
1187 static const char *ipaddr_to_host(const struct in_addr *addr) in ipaddr_to_host()
1191 host = gethostbyaddr(addr, sizeof(struct in_addr), AF_INET); in ipaddr_to_host()
1198 static const char *ipaddr_to_network(const struct in_addr *addr) in ipaddr_to_network()
1208 const char *xtables_ipaddr_to_anyname(const struct in_addr *addr) in xtables_ipaddr_to_anyname()
1219 int xtables_ipmask_to_cidr(const struct in_addr *mask) in xtables_ipmask_to_cidr()
1240 const char *xtables_ipmask_to_numeric(const struct in_addr *mask) in xtables_ipmask_to_numeric()
1259 static struct in_addr *__numeric_to_ipaddr(const char *dotted, bool is_mask) in __numeric_to_ipaddr()
1261 static struct in_addr addr; in __numeric_to_ipaddr()
1305 struct in_addr *xtables_numeric_to_ipaddr(const char *dotted) in xtables_numeric_to_ipaddr()
1310 struct in_addr *xtables_numeric_to_ipmask(const char *dotted) in xtables_numeric_to_ipmask()
1315 static struct in_addr *network_to_ipaddr(const char *name) in network_to_ipaddr()
1317 static struct in_addr addr; in network_to_ipaddr()
1330 static struct in_addr *host_to_ipaddr(const char *name, unsigned int *naddr) in host_to_ipaddr()
1333 struct in_addr *addr; in host_to_ipaddr()
1339 host->h_length != sizeof(struct in_addr)) in host_to_ipaddr()
1344 addr = xtables_calloc(*naddr, sizeof(struct in_addr)); in host_to_ipaddr()
1347 sizeof(struct in_addr)); in host_to_ipaddr()
1354 static struct in_addr *
1357 struct in_addr *addrptmp, *addrp; in ipparse_hostnetwork()
1361 addrp = xtables_malloc(sizeof(struct in_addr)); in ipparse_hostnetwork()
1372 static struct in_addr *parse_ipmask(const char *mask) in parse_ipmask()
1374 static struct in_addr maskaddr; in parse_ipmask()
1375 struct in_addr *addrp; in parse_ipmask()
1398 void xtables_ipparse_multiple(const char *name, struct in_addr **addrpp, in xtables_ipparse_multiple()
1399 struct in_addr **maskpp, unsigned int *naddrs) in xtables_ipparse_multiple()
1401 struct in_addr *addrp; in xtables_ipparse_multiple()
1411 *addrpp = xtables_malloc(sizeof(struct in_addr) * count); in xtables_ipparse_multiple()
1412 *maskpp = xtables_malloc(sizeof(struct in_addr) * count); in xtables_ipparse_multiple()
1450 sizeof(struct in_addr) * count); in xtables_ipparse_multiple()
1452 sizeof(struct in_addr) * count); in xtables_ipparse_multiple()
1484 void xtables_ipparse_any(const char *name, struct in_addr **addrpp, in xtables_ipparse_any()
1485 struct in_addr *maskp, unsigned int *naddrs) in xtables_ipparse_any()
1488 struct in_addr *addrp; in xtables_ipparse_any()
1517 sizeof(struct in_addr)); in xtables_ipparse_any()
1829 sizeof(struct in_addr)); in xtables_ip6parse_any()