Searched refs:naddr (Results 1 – 8 of 8) sorted by relevance
/external/ipsec-tools/src/racoon/ |
D | sockmisc.c | 918 naddrwop2str(const struct netaddr *naddr) in naddrwop2str() argument 923 if (naddr == NULL) in naddrwop2str() 926 if (memcmp(&naddr->sa, &sa_any, sizeof(sa_any)) == 0) in naddrwop2str() 929 snprintf(buf, sizeof(buf), "%s", saddrwop2str(&naddr->sa.sa)); in naddrwop2str() 930 snprintf(&buf[strlen(buf)], sizeof(buf) - strlen(buf), "/%ld", naddr->prefix); in naddrwop2str() 1068 naddr_score(const struct netaddr *naddr, const struct sockaddr *saddr) in naddr_score() argument 1075 if (!naddr || !saddr) { in naddr_score() 1078 naddr, saddr); in naddr_score() 1083 if (memcmp(naddr, &naddr_any, sizeof(naddr_any)) == 0) in naddr_score() 1087 if (naddr->sa.sa.sa_family != saddr->sa_family) in naddr_score() [all …]
|
D | sockmisc.h | 79 extern char *naddrwop2str __P((const struct netaddr *naddr)); 82 extern int naddr_score(const struct netaddr *naddr, const struct sockaddr *saddr);
|
D | prsa_par.h | 99 struct netaddr *naddr; member
|
D | prsa_par.y | 135 struct netaddr *naddr; member 151 %type <naddr> addr4 addr6 addr
|
/external/iptables/extensions/ |
D | libipt_policy.c | 136 unsigned int naddr = 0; in parse() local 193 parse_hostnetworkmask(argv[optind-1], &addr, &mask, &naddr); in parse() 194 if (naddr > 1) in parse() 208 parse_hostnetworkmask(argv[optind-1], &addr, &mask, &naddr); in parse() 209 if (naddr > 1) in parse()
|
D | libip6t_policy.c | 176 unsigned int naddr = 0; in parse() local 233 parse_hostnetworkmask(argv[optind-1], &addr, &mask, &naddr); in parse() 234 if (naddr > 1) in parse() 248 parse_hostnetworkmask(argv[optind-1], &addr, &mask, &naddr); in parse() 249 if (naddr > 1) in parse()
|
/external/iptables/ |
D | iptables.c | 607 host_to_addr(const char *name, unsigned int *naddr) in host_to_addr() argument 613 *naddr = 0; in host_to_addr() 619 while (host->h_addr_list[*naddr] != (char *) NULL) in host_to_addr() 620 (*naddr)++; in host_to_addr() 621 addr = fw_calloc(*naddr, sizeof(struct in_addr) * *naddr); in host_to_addr() 622 for (i = 0; i < *naddr; i++) in host_to_addr()
|
D | ip6tables.c | 539 host_to_addr(const char *name, unsigned int *naddr) in host_to_addr() argument 553 *naddr = 0; in host_to_addr() 573 *naddr = 1; in host_to_addr()
|