Home
last modified time | relevance | path

Searched refs:naddr (Results 1 – 8 of 8) sorted by relevance

/external/ipsec-tools/src/racoon/
Dsockmisc.c918 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 …]
Dsockmisc.h79 extern char *naddrwop2str __P((const struct netaddr *naddr));
82 extern int naddr_score(const struct netaddr *naddr, const struct sockaddr *saddr);
Dprsa_par.h99 struct netaddr *naddr; member
Dprsa_par.y135 struct netaddr *naddr; member
151 %type <naddr> addr4 addr6 addr
/external/iptables/extensions/
Dlibipt_policy.c136 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()
Dlibip6t_policy.c176 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/
Diptables.c607 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()
Dip6tables.c539 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()