Home
last modified time | relevance | path

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

/external/ipsec-tools/src/racoon/
Dsockmisc.c807 naddrwop2str(const struct netaddr *naddr) in naddrwop2str() argument
812 if (naddr == NULL) in naddrwop2str()
815 if (memcmp(&naddr->sa, &sa_any, sizeof(sa_any)) == 0) in naddrwop2str()
818 snprintf(buf, sizeof(buf), "%s", saddrwop2str(&naddr->sa.sa)); in naddrwop2str()
819 snprintf(&buf[strlen(buf)], sizeof(buf) - strlen(buf), "/%ld", naddr->prefix); in naddrwop2str()
957 naddr_score(const struct netaddr *naddr, const struct sockaddr *saddr) in naddr_score() argument
964 if (!naddr || !saddr) { in naddr_score()
967 naddr, saddr); in naddr_score()
972 if (memcmp(naddr, &naddr_any, sizeof(naddr_any)) == 0) in naddr_score()
976 if (naddr->sa.sa.sa_family != saddr->sa_family) in naddr_score()
[all …]
Dsockmisc.h87 extern char *naddrwop2str __P((const struct netaddr *naddr));
90 extern int naddr_score(const struct netaddr *naddr, const struct sockaddr *saddr);
Dprsa_par.h102 struct netaddr *naddr; member
Dprsa_par.y135 struct netaddr *naddr; member
151 %type <naddr> addr4 addr6 addr
/external/iptables/iptables/
Dxtables.c1218 static struct in_addr *host_to_ipaddr(const char *name, unsigned int *naddr) in host_to_ipaddr() argument
1224 *naddr = 0; in host_to_ipaddr()
1230 while (host->h_addr_list[*naddr] != NULL) in host_to_ipaddr()
1231 ++*naddr; in host_to_ipaddr()
1232 addr = xtables_calloc(*naddr, sizeof(struct in_addr)); in host_to_ipaddr()
1233 for (i = 0; i < *naddr; i++) in host_to_ipaddr()
1507 host_to_ip6addr(const char *name, unsigned int *naddr) in host_to_ip6addr() argument
1520 *naddr = 0; in host_to_ip6addr()
1529 ++*naddr; in host_to_ip6addr()
1535 addr = xtables_calloc(*naddr, sizeof(struct in6_addr)); in host_to_ip6addr()