Home
last modified time | relevance | path

Searched refs:ifaddr (Results 1 – 14 of 14) sorted by relevance

/external/strace/
Drtnl_addr.c51 const struct ifaddrmsg *const ifaddr = opaque_data; in decode_ifa_address() local
53 decode_inet_addr(tcp, addr, len, ifaddr->ifa_family, NULL); in decode_ifa_address()
108 struct ifaddrmsg ifaddr = { .ifa_family = family }; in DECL_NETLINK_ROUTE_DECODER() local
109 size_t offset = sizeof(ifaddr.ifa_family); in DECL_NETLINK_ROUTE_DECODER()
112 PRINT_FIELD_XVAL("{", ifaddr, ifa_family, addrfams, "AF_???"); in DECL_NETLINK_ROUTE_DECODER()
115 if (len >= sizeof(ifaddr)) { in DECL_NETLINK_ROUTE_DECODER()
117 sizeof(ifaddr) - offset, in DECL_NETLINK_ROUTE_DECODER()
118 (char *) &ifaddr + offset)) { in DECL_NETLINK_ROUTE_DECODER()
119 PRINT_FIELD_U("", ifaddr, ifa_prefixlen); in DECL_NETLINK_ROUTE_DECODER()
120 PRINT_FIELD_FLAGS(", ", ifaddr, ifa_flags, in DECL_NETLINK_ROUTE_DECODER()
[all …]
/external/webrtc/webrtc/base/
Difaddrs-android.cc39 int set_ifname(struct ifaddrs* ifaddr, int interface) { in set_ifname() argument
45 ifaddr->ifa_name = new char[strlen(name) + 1]; in set_ifname()
46 strncpy(ifaddr->ifa_name, name, strlen(name) + 1); in set_ifname()
50 int set_flags(struct ifaddrs* ifaddr) { in set_flags() argument
57 strncpy(ifr.ifr_name, ifaddr->ifa_name, IFNAMSIZ - 1); in set_flags()
63 ifaddr->ifa_flags = ifr.ifr_flags; in set_flags()
67 int set_addresses(struct ifaddrs* ifaddr, ifaddrmsg* msg, void* data, in set_addresses() argument
73 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses()
79 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses()
86 int make_prefixes(struct ifaddrs* ifaddr, int family, int prefixlen) { in make_prefixes() argument
[all …]
/external/iputils/ninfod/
Dninfod_addrs.c136 int filter_ipv6addr(const struct in6_addr *ifaddr, unsigned int flags) in filter_ipv6addr() argument
138 if (IN6_IS_ADDR_UNSPECIFIED(ifaddr) || in filter_ipv6addr()
139 IN6_IS_ADDR_LOOPBACK(ifaddr)) { in filter_ipv6addr()
141 } else if (IN6_IS_ADDR_V4COMPAT(ifaddr) || in filter_ipv6addr()
142 IN6_IS_ADDR_V4MAPPED(ifaddr)) { in filter_ipv6addr()
144 } else if (IN6_IS_ADDR_LINKLOCAL(ifaddr)) { in filter_ipv6addr()
146 } else if (IN6_IS_ADDR_SITELOCAL(ifaddr)) { in filter_ipv6addr()
316 int filter_ipv4addr(const struct in_addr *ifaddr, unsigned int flags) in filter_ipv4addr() argument
/external/iputils/
Drarpd.c55 struct ifaddr *ifa_list;
58 struct ifaddr struct
60 struct ifaddr *next; argument
92 struct ifaddr *ifa; in load_if()
183 ifa = (struct ifaddr*)malloc(sizeof(*ifa)); in load_if()
239 struct ifaddr *select_ipaddr(int ifindex, __u32 *sel_addr, __u32 **alist) in select_ipaddr()
242 struct ifaddr *ifa; in select_ipaddr()
298 struct ifaddr *ifa; in rarp_lookup()
367 struct ifaddr *ifa; in put_myipaddr()
/external/scapy/scapy/arch/
Dlinux.py206 ifaddr = struct.unpack(">I", ifreq[20:24])[0]
218 if (ifaddr & msk) == ip_mask:
220 return (ifaddr & msk, msk, gw_str, ifname,
221 scapy.utils.ltoa(ifaddr), metric)
241 ifaddr = scapy.utils.inet_ntoa(ifreq[20:24])
242 routes.append((dst, msk, "0.0.0.0", LOOPBACK_NAME, ifaddr, 1))
257 ifaddr="0.0.0.0"
261 ifaddr = scapy.utils.inet_ntoa(ifreq[20:24])
278 routes.append((dst_int, msk_int, gw_str, iff, ifaddr, metric))
281 routes.append((dst_int, msk_int, gw_str, iff, ifaddr, metric))
Dunix.py103 ifaddr = get_if_addr(netif)
104 routes.append((dest,netmask, gw, netif, ifaddr, metric))
112 ifaddr = get_if_addr(guessed_netif)
113 routes.append((dest, netmask, gw, guessed_netif, ifaddr, metric))
/external/ipsec-tools/src/racoon/
Dgrabmyaddr.c570 suitable_ifaddr(ifname, ifaddr) in suitable_ifaddr() argument
572 const struct sockaddr *ifaddr;
576 if (exclude_cfg_addr(ifaddr) == 0)
579 switch(ifaddr->sa_family) {
584 return suitable_ifaddr6(ifname, ifaddr);
594 suitable_ifaddr6(ifname, ifaddr) in suitable_ifaddr6() argument
596 const struct sockaddr *ifaddr;
603 if (ifaddr->sa_family != AF_INET6)
620 ifr6.ifr_addr = *(const struct sockaddr_in6 *)ifaddr;
/external/scapy/scapy/
Droute.py67 dev, ifaddr, _ = self.route(nhop)
69 ifaddr = get_if_addr(dev)
70 return (atol(thenet), itom(msk), gw, dev, ifaddr, metric)
Droute6.py74 dev, ifaddr, x = self.route(gw)
80 ifaddr = construct_source_candidate_set(prefix, plen, devaddrs)
82 return (prefix, plen, gw, dev, ifaddr, 1)
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
D2009-04-29-LinearScanBug.ll40ifaddr = type { %struct.sockaddr*, %struct.sockaddr*, %struct.sockaddr*, %struct.ifnet*, %struct.i…
41 %struct.ifaddrhead = type { %struct.ifaddr*, %struct.ifaddr** }
99 …struct.radix_node], %struct.sockaddr*, i32, i32, %struct.ifnet*, %struct.ifaddr*, %struct.sockaddr…
/external/llvm/test/CodeGen/X86/
D2009-04-29-LinearScanBug.ll40ifaddr = type { %struct.sockaddr*, %struct.sockaddr*, %struct.sockaddr*, %struct.ifnet*, %struct.i…
41 %struct.ifaddrhead = type { %struct.ifaddr*, %struct.ifaddr** }
99 …struct.radix_node], %struct.sockaddr*, i32, i32, %struct.ifnet*, %struct.ifaddr*, %struct.sockaddr…
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
D2009-04-29-LinearScanBug.ll40ifaddr = type { %struct.sockaddr*, %struct.sockaddr*, %struct.sockaddr*, %struct.ifnet*, %struct.i…
41 %struct.ifaddrhead = type { %struct.ifaddr*, %struct.ifaddr** }
99 …struct.radix_node], %struct.sockaddr*, i32, i32, %struct.ifnet*, %struct.ifaddr*, %struct.sockaddr…
/external/scapy/scapy/arch/windows/
D__init__.py904 for ifaddr in in6_getifaddr_raw():
906 ifaddrs.append((ifaddr[0], ifaddr[1], dev_from_pcapname(ifaddr[2])))
/external/libpcap/
Dpcap-rpcap.c2574 struct rpcap_findalldevs_ifaddr ifaddr; in pcap_findalldevs_ex_remote() local
2577 if (rpcap_recv(sockctrl, (char *)&ifaddr, in pcap_findalldevs_ex_remote()
2598 if (rpcap_deseraddr(&ifaddr.addr, in pcap_findalldevs_ex_remote()
2604 if (rpcap_deseraddr(&ifaddr.netmask, in pcap_findalldevs_ex_remote()
2610 if (rpcap_deseraddr(&ifaddr.broadaddr, in pcap_findalldevs_ex_remote()
2616 if (rpcap_deseraddr(&ifaddr.dstaddr, in pcap_findalldevs_ex_remote()