Home
last modified time | relevance | path

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

/external/elfutils/libdwfl/
Dsegment.c66 GElf_Addr *naddr = realloc (dwfl->lookup_addr, sizeof naddr[0] * n); in insert() local
67 if (unlikely (naddr == NULL)) in insert()
72 if (naddr != dwfl->lookup_addr) in insert()
73 free (naddr); in insert()
77 dwfl->lookup_addr = naddr; in insert()
/external/ipsec-tools/src/racoon/
Dsockmisc.c933 naddrwop2str(const struct netaddr *naddr) in naddrwop2str() argument
938 if (naddr == NULL) in naddrwop2str()
941 if (memcmp(&naddr->sa, &sa_any, sizeof(sa_any)) == 0) in naddrwop2str()
944 snprintf(buf, sizeof(buf), "%s", saddrwop2str(&naddr->sa.sa)); in naddrwop2str()
945 snprintf(&buf[strlen(buf)], sizeof(buf) - strlen(buf), "/%ld", naddr->prefix); in naddrwop2str()
1083 naddr_score(const struct netaddr *naddr, const struct sockaddr *saddr) in naddr_score() argument
1090 if (!naddr || !saddr) { in naddr_score()
1093 naddr, saddr); in naddr_score()
1098 if (memcmp(naddr, &naddr_any, sizeof(naddr_any)) == 0) in naddr_score()
1102 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/scapy/scapy/
Droute6.py122 naddr = inet_pton(socket.AF_INET6, the_addr)
124 the_net = inet_ntop(socket.AF_INET6, in6_and(nmask,naddr))
163 naddr = inet_pton(socket.AF_INET6, addr)
165 prefix = inet_ntop(socket.AF_INET6, in6_and(nmask,naddr))
Dutils6.py165 naddr = inet_pton(socket.AF_INET6, addr)
166 paddr = inet_ntop(socket.AF_INET6, naddr) # normalize
170 if ((orb(naddr[0]) & 0xE0) == 0x20):
172 if naddr[:2] == b' \x02': # Mark 6to4 @
174 elif orb(naddr[0]) == 0xff: # multicast
182 elif ((orb(naddr[0]) == 0xfe) and ((int(paddr[2], 16) & 0xC) == 0x8)):
/external/toybox/toys/pending/
Droute.c311 uint32_t naddr[4] = {0,}; in setroute() local
318 if (!inet_pton(f, argv[1], &naddr)) error_exit("invalid netmask"); in setroute()
320 uint32_t mask = htonl(*naddr), host = ~mask; in setroute()
Dip.c401 uint32_t naddr[4] = {0,}; in get_nmask_prefix() local
409 if (get_prefix(naddr, &naf, name, family)) return -1; in get_nmask_prefix()
411 uint32_t mask = htonl(*naddr), host = ~mask; in get_nmask_prefix()
/external/iptables/libxtables/
Dxtables.c1543 static struct in_addr *host_to_ipaddr(const char *name, unsigned int *naddr) in host_to_ipaddr() argument
1555 *naddr = 0; in host_to_ipaddr()
1560 ++*naddr; in host_to_ipaddr()
1561 addr = xtables_calloc(*naddr, sizeof(struct in_addr)); in host_to_ipaddr()
1829 host_to_ip6addr(const char *name, unsigned int *naddr) in host_to_ip6addr() argument
1841 *naddr = 0; in host_to_ip6addr()
1847 ++*naddr; in host_to_ip6addr()
1849 addr = xtables_calloc(*naddr, sizeof(struct in6_addr)); in host_to_ip6addr()
/external/libpcap/
Drpcap-protocol.h168 uint16 naddr; /* Number of addresses */ member
Dpcap-rpcap.c2544 findalldevs_if.naddr = ntohs(findalldevs_if.naddr); in pcap_findalldevs_ex_remote()
2636 for (j = 0; j < findalldevs_if.naddr; j++) in pcap_findalldevs_ex_remote()
/external/scapy/scapy/contrib/
Dcdp.py169 PacketListField("addr", [], _CDPGuessAddrRecord, count_from=lambda x:x.naddr) ]
/external/libpcap/rpcapd/
Ddaemon.c1742 findalldevs_if->naddr++; in daemon_msg_findallif_req()
1749 findalldevs_if->naddr = htons(findalldevs_if->naddr); in daemon_msg_findallif_req()
/external/usrsctp/usrsctplib/netinet/
Dsctp_pcb.c5485 struct sctp_laddr *laddr, *naddr; local
5922 LIST_FOREACH_SAFE(laddr, &asoc->sctp_restricted_addrs, sctp_nxt_addr, naddr) {