Home
last modified time | relevance | path

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

/external/elfutils/libdwfl/
Dsegment.c80 GElf_Addr *naddr = realloc (dwfl->lookup_addr, sizeof naddr[0] * n); in insert() local
81 if (unlikely (naddr == NULL)) in insert()
86 if (naddr != dwfl->lookup_addr) in insert()
87 free (naddr); in insert()
91 dwfl->lookup_addr = naddr; in insert()
/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/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()