Home
last modified time | relevance | path

Searched refs:ifaddr (Results 1 – 22 of 22) 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/rtc_base/
Difaddrs_android.cc40 int set_ifname(struct ifaddrs* ifaddr, int interface) { in set_ifname() argument
46 ifaddr->ifa_name = new char[strlen(name) + 1]; in set_ifname()
47 strncpy(ifaddr->ifa_name, name, strlen(name) + 1); in set_ifname()
51 int set_flags(struct ifaddrs* ifaddr) { in set_flags() argument
58 strncpy(ifr.ifr_name, ifaddr->ifa_name, IFNAMSIZ - 1); in set_flags()
64 ifaddr->ifa_flags = ifr.ifr_flags; in set_flags()
68 int set_addresses(struct ifaddrs* ifaddr, in set_addresses() argument
76 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses()
82 ifaddr->ifa_addr = reinterpret_cast<sockaddr*>(sa); in set_addresses()
89 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/usrsctp/usrsctplib/netinet/
Dsctp_bsd_addr.h65 void sctp_addr_change(struct ifaddr *ifa, int cmd);
69 void sctp_addr_change_event_handler(void *, struct ifaddr *, int);
Dsctp_bsd_addr.c499 struct ifaddr **ifaddrlist;
500 struct ifaddr *ifa;
576 struct ifaddr *ifa;
665 sctp_addr_change(struct ifaddr *ifa, int cmd)
747 sctp_addr_change_event_handler(void *arg __unused, struct ifaddr *ifa, int cmd) {
756 struct ifaddr **ifaddrlist;
Dsctp_structs.h247 struct ifaddr *ro_srcia;
Dsctp_output.c15148 struct ifaddr *ifa;
15159 ifa = (struct ifaddr *)sifa->ifa;
/external/rust/crates/nix/src/
Difaddrs.rs92 Some(ifaddr) => { in next()
93 self.next = ifaddr.ifa_next; in next()
94 Some(InterfaceAddress::from_libc_ifaddrs(ifaddr)) in next()
/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/rust/crates/nix/test/sys/
Dtest_socket.rs1180 for ifaddr in addrs { in loopback_address()
1181 if ifaddr.flags.contains(InterfaceFlags::IFF_LOOPBACK) { in loopback_address()
1182 match ifaddr.address { in loopback_address()
1185 AddressFamily::Inet => return Some(ifaddr), in loopback_address()
1191 AddressFamily::Inet6 => return Some(ifaddr), in loopback_address()
1227 Some(ifaddr) => (ifaddr.interface_name, in test_recv_ipv4pktinfo()
1228 ifaddr.address.expect("Expect IPv4 address on interface")), in test_recv_ipv4pktinfo()
1317 Some(ifaddr) => (ifaddr.interface_name, in test_recvif()
1318 ifaddr.address.expect("Expect IPv4 address on interface")), in test_recvif()
1428 Some(ifaddr) => (ifaddr.interface_name, in test_recv_ipv6pktinfo()
[all …]
/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/llvm-project/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/usrsctp/usrsctplib/
Duser_route.h86 struct ifaddr *rt_ifa; /* the answer: interface address to use */
/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.c2638 struct rpcap_findalldevs_ifaddr ifaddr; in pcap_findalldevs_ex_remote() local
2641 if (rpcap_recv(sockctrl, ssl, (char *)&ifaddr, in pcap_findalldevs_ex_remote()
2662 if (rpcap_deseraddr(&ifaddr.addr, in pcap_findalldevs_ex_remote()
2668 if (rpcap_deseraddr(&ifaddr.netmask, in pcap_findalldevs_ex_remote()
2674 if (rpcap_deseraddr(&ifaddr.broadaddr, in pcap_findalldevs_ex_remote()
2680 if (rpcap_deseraddr(&ifaddr.dstaddr, in pcap_findalldevs_ex_remote()
/external/usrsctp/
Dmeson.build113 # Feature: sys/socket, linux/ifaddr, linux/rtnetlink
/external/llvm-project/compiler-rt/lib/sanitizer_common/
Dsanitizer_platform_limits_netbsd.cpp821 unsigned struct_ifaddr_sz = sizeof(ifaddr);