/external/strace/ |
D | rtnl_addr.c | 51 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/rtc_base/ |
D | ifaddrs_android.cc | 42 int set_ifname(struct ifaddrs* ifaddr, int interface) { in set_ifname() argument 48 ifaddr->ifa_name = new char[strlen(name) + 1]; in set_ifname() 49 strncpy(ifaddr->ifa_name, name, strlen(name) + 1); in set_ifname() 53 int set_flags(struct ifaddrs* ifaddr) { in set_flags() argument 60 strncpy(ifr.ifr_name, ifaddr->ifa_name, IFNAMSIZ - 1); in set_flags() 66 ifaddr->ifa_flags = ifr.ifr_flags; in set_flags() 70 int set_addresses(struct ifaddrs* ifaddr, in set_addresses() argument 78 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses() 84 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses() 91 int make_prefixes(struct ifaddrs* ifaddr, int family, int prefixlen) { in make_prefixes() argument [all …]
|
/external/cronet/net/base/ |
D | network_interfaces_getifaddrs_android.cc | 52 int set_ifname(struct ifaddrs* ifaddr, int interface) { in set_ifname() argument 58 ifaddr->ifa_name = new char[strlen(name) + 1]; in set_ifname() 59 strncpy(ifaddr->ifa_name, name, strlen(name) + 1); in set_ifname() 63 int set_flags(struct ifaddrs* ifaddr) { in set_flags() argument 70 strncpy(ifr.ifr_name, ifaddr->ifa_name, IFNAMSIZ - 1); in set_flags() 76 ifaddr->ifa_flags = ifr.ifr_flags; in set_flags() 80 int set_addresses(struct ifaddrs* ifaddr, in set_addresses() argument 88 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses() 94 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses() 101 int make_prefixes(struct ifaddrs* ifaddr, int family, int prefixlen) { in make_prefixes() argument [all …]
|
/external/iputils/ninfod/ |
D | ninfod_addrs.c | 136 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/ |
D | rarpd.c | 55 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/ |
D | linux.py | 206 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))
|
D | unix.py | 103 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/ |
D | grabmyaddr.c | 570 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/rust/crates/nix/src/ |
D | ifaddrs.rs | 134 Some(ifaddr) => { in next() 135 self.next = ifaddr.ifa_next; in next() 136 Some(InterfaceAddress::from_libc_ifaddrs(ifaddr)) in next()
|
/external/musl/include/net/ |
D | if.h | 51 struct ifaddr { struct 58 struct ifaddr *ifa_next; argument
|
/external/scapy/scapy/ |
D | route.py | 67 dev, ifaddr, _ = self.route(nhop) 69 ifaddr = get_if_addr(dev) 70 return (atol(thenet), itom(msk), gw, dev, ifaddr, metric)
|
D | route6.py | 74 dev, ifaddr, x = self.route(gw) 80 ifaddr = construct_source_candidate_set(prefix, plen, devaddrs) 82 return (prefix, plen, gw, dev, ifaddr, 1)
|
/external/rust/crates/nix/test/sys/ |
D | test_socket.rs | 1654 addrs.find(|ifaddr| { in loopback_address() 1655 ifaddr.flags.contains(InterfaceFlags::IFF_LOOPBACK) in loopback_address() 1656 && ifaddr.address.as_ref().and_then(SockaddrLike::family) in loopback_address() 1691 Some(ifaddr) => ( in test_recv_ipv4pktinfo() 1692 ifaddr.interface_name, in test_recv_ipv4pktinfo() 1693 ifaddr.address.expect("Expect IPv4 address on interface"), in test_recv_ipv4pktinfo() 1785 Some(ifaddr) => ( in test_recvif() 1786 ifaddr.interface_name, in test_recvif() 1787 ifaddr.address.expect("Expect IPv4 address on interface"), in test_recvif() 1884 Some(ifaddr) => ( in test_recvif_ipv4() [all …]
|
/external/llvm/test/CodeGen/X86/ |
D | 2009-04-29-LinearScanBug.ll | 40 …ifaddr = 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__.py | 904 for ifaddr in in6_getifaddr_raw(): 906 ifaddrs.append((ifaddr[0], ifaddr[1], dev_from_pcapname(ifaddr[2])))
|
/external/openthread/src/posix/platform/ |
D | netif.cpp | 1016 struct ifaddrmsg * ifaddr = reinterpret_cast<struct ifaddrmsg *>(NLMSG_DATA(aNetlinkMessage)); in processNetifAddrEvent() local 1021 …VerifyOrExit(ifaddr->ifa_index == static_cast<unsigned int>(gNetifIndex) && ifaddr->ifa_family == … in processNetifAddrEvent() 1025 …for (struct rtattr *rta = reinterpret_cast<struct rtattr *>(IFA_RTA(ifaddr)); RTA_OK(rta, rtaLengt… in processNetifAddrEvent() 1050 netAddr.mPrefixLength = ifaddr->ifa_prefixlen; in processNetifAddrEvent()
|
/external/libpcap/ |
D | pcap-rpcap.c | 2772 struct rpcap_findalldevs_ifaddr ifaddr; in pcap_findalldevs_ex_remote() local 2775 if (rpcap_recv(sockctrl, ssl, (char *)&ifaddr, in pcap_findalldevs_ex_remote() 2796 if (rpcap_deseraddr(&ifaddr.addr, in pcap_findalldevs_ex_remote() 2802 if (rpcap_deseraddr(&ifaddr.netmask, in pcap_findalldevs_ex_remote() 2808 if (rpcap_deseraddr(&ifaddr.broadaddr, in pcap_findalldevs_ex_remote() 2814 if (rpcap_deseraddr(&ifaddr.dstaddr, in pcap_findalldevs_ex_remote()
|
/external/linux-kselftest/tools/testing/selftests/bpf/prog_tests/ |
D | tc_redirect.c | 203 static int get_ifaddr(const char *name, char *ifaddr) in get_ifaddr() argument 214 ret = fread(ifaddr, 1, IFADDR_STR_LEN, f); in get_ifaddr()
|