Home
last modified time | relevance | path

Searched refs:ifinfo (Results 1 – 24 of 24) sorted by relevance

/external/wpa_supplicant_8/src/drivers/
Dnetlink.c176 struct ifinfomsg ifinfo; in netlink_send_oper_ifla() member
191 req.ifinfo.ifi_family = AF_UNSPEC; in netlink_send_oper_ifla()
192 req.ifinfo.ifi_type = 0; in netlink_send_oper_ifla()
193 req.ifinfo.ifi_index = ifindex; in netlink_send_oper_ifla()
194 req.ifinfo.ifi_flags = 0; in netlink_send_oper_ifla()
195 req.ifinfo.ifi_change = 0; in netlink_send_oper_ifla()
/external/strace/
Drtnl_link.c896 struct ifinfomsg ifinfo = { .ifi_family = family }; in DECL_NETLINK_ROUTE_DECODER() local
897 size_t offset = sizeof(ifinfo.ifi_family); in DECL_NETLINK_ROUTE_DECODER()
900 PRINT_FIELD_XVAL("{", ifinfo, ifi_family, addrfams, "AF_???"); in DECL_NETLINK_ROUTE_DECODER()
903 if (len >= sizeof(ifinfo)) { in DECL_NETLINK_ROUTE_DECODER()
905 sizeof(ifinfo) - offset, in DECL_NETLINK_ROUTE_DECODER()
906 (char *) &ifinfo + offset)) { in DECL_NETLINK_ROUTE_DECODER()
907 PRINT_FIELD_XVAL_SORTED_SIZED("", ifinfo, ifi_type, in DECL_NETLINK_ROUTE_DECODER()
911 PRINT_FIELD_IFINDEX(", ", ifinfo, ifi_index); in DECL_NETLINK_ROUTE_DECODER()
912 PRINT_FIELD_FLAGS(", ", ifinfo, ifi_flags, in DECL_NETLINK_ROUTE_DECODER()
914 PRINT_FIELD_X(", ", ifinfo, ifi_change); in DECL_NETLINK_ROUTE_DECODER()
[all …]
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv4_sender.c316 struct ifreq ifinfo; /* Interface information */ in complete_eth_addrs() local
329 get_ifinfo(&ifinfo, sock_fd, fake_p->src_ifname, SIOCGIFHWADDR); in complete_eth_addrs()
330 memcpy(fake_p->saddr_ll.sll_addr, ifinfo.ifr_hwaddr.sa_data, ETH_ALEN); in complete_eth_addrs()
333 get_ifinfo(&ifinfo, sock_fd, fake_p->src_ifname, SIOCGIFINDEX); in complete_eth_addrs()
334 fake_p->saddr_ll.sll_ifindex = ifinfo.ifr_ifindex; in complete_eth_addrs()
335 fake_p->daddr_ll.sll_ifindex = ifinfo.ifr_ifindex; in complete_eth_addrs()
Dns-icmp_redirector.c225 struct ifreq ifinfo; /* Interface information */ in open_socket() local
237 get_ifinfo(&ifinfo, sd, ifname, SIOCGIFINDEX); in open_socket()
243 lla.sll_ifindex = ifinfo.ifr_ifindex; in open_socket()
248 get_ifinfo(&ifinfo, sd, ifname, SIOCGIFFLAGS); in open_socket()
249 ifinfo.ifr_flags = ifinfo.ifr_flags | IFF_PROMISC; in open_socket()
250 if (ioctl(sd, SIOCSIFFLAGS, &ifinfo) < 0) in open_socket()
Dns-udpsender.c292 struct ifreq ifinfo; /* Interface information */ in create_udp_datagram() local
328 get_ifinfo(&ifinfo, udp_p->sd, udp_p->ifname, SIOCGIFINDEX); in create_udp_datagram()
329 ifindex = ifinfo.ifr_ifindex; in create_udp_datagram()
Dns-icmpv6_sender.c177 struct ifreq ifinfo; /* Interface information */ in specify_hw_addr() local
189 get_ifinfo(&ifinfo, sock_fd, ifname, SIOCGIFHWADDR); in specify_hw_addr()
190 memcpy(lladdr_p->sll_addr, ifinfo.ifr_hwaddr.sa_data, ETH_ALEN); in specify_hw_addr()
/external/ot-br-posix/src/utils/
Dinfra_link_selector.cpp273 struct ifinfomsg *ifinfo; in ReceiveNetLinkMessage() local
279 ifinfo = reinterpret_cast<struct ifinfomsg *>(NLMSG_DATA(header)); in ReceiveNetLinkMessage()
280 HandleInfraLinkStateChange(ifinfo->ifi_index); in ReceiveNetLinkMessage()
/external/strace/tests/
Dnetlink_route.c208 const struct ifinfomsg ifinfo = { in test_rtnl_link() local
215 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(ifinfo)); in test_rtnl_link()
217 TEST_NL_ROUTE(fd, nlh0, RTM_GETLINK, ifinfo, in test_rtnl_link()
222 PRINT_FIELD_X(", ", ifinfo, ifi_change); in test_rtnl_link()
/external/strace/tests-mx32/
Dnetlink_route.c208 const struct ifinfomsg ifinfo = { in test_rtnl_link() local
215 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(ifinfo)); in test_rtnl_link()
217 TEST_NL_ROUTE(fd, nlh0, RTM_GETLINK, ifinfo, in test_rtnl_link()
222 PRINT_FIELD_X(", ", ifinfo, ifi_change); in test_rtnl_link()
/external/strace/tests-m32/
Dnetlink_route.c208 const struct ifinfomsg ifinfo = { in test_rtnl_link() local
215 void *const nlh0 = midtail_alloc(NLMSG_HDRLEN, sizeof(ifinfo)); in test_rtnl_link()
217 TEST_NL_ROUTE(fd, nlh0, RTM_GETLINK, ifinfo, in test_rtnl_link()
222 PRINT_FIELD_X(", ", ifinfo, ifi_change); in test_rtnl_link()
/external/bpftool/src/
Dnetlink_dumper.c72 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb) in do_xdp_dump() argument
77 return do_xdp_dump_one(tb[IFLA_XDP], ifinfo->ifi_index, in do_xdp_dump()
Dnet.c355 struct ifinfomsg *ifinfo = msg; in dump_link_nlmsg() local
357 if (netinfo->filter_idx > 0 && netinfo->filter_idx != ifinfo->ifi_index) in dump_link_nlmsg()
369 netinfo->devices[netinfo->used_len].ifindex = ifinfo->ifi_index; in dump_link_nlmsg()
378 return do_xdp_dump(ifinfo, tb); in dump_link_nlmsg()
Dmain.h242 int do_xdp_dump(struct ifinfomsg *ifinfo, struct nlattr **tb);
243 int do_filter_dump(struct tcmsg *ifinfo, struct nlattr **tb, const char *kind,
/external/libbpf/src/
Dnetlink.c195 req.ifinfo.ifi_family = AF_UNSPEC; in __bpf_set_link_xdp_fd_replace()
196 req.ifinfo.ifi_index = ifindex; in __bpf_set_link_xdp_fd_replace()
287 struct ifinfomsg *ifinfo = msg; in get_xdp_info() local
290 if (xdp_id->ifindex && xdp_id->ifindex != ifinfo->ifi_index) in get_xdp_info()
334 .ifinfo.ifi_family = AF_PACKET, in bpf_xdp_query()
Dnlattr.h59 struct ifinfomsg ifinfo; member
/external/openthread/src/posix/platform/
Dnetif.cpp1112 struct ifinfomsg *ifinfo = reinterpret_cast<struct ifinfomsg *>(NLMSG_DATA(aNetlinkMessage)); in processNetifLinkEvent() local
1116 … VerifyOrExit(ifinfo->ifi_index == static_cast<int>(gNetifIndex) && (ifinfo->ifi_change & IFF_UP)); in processNetifLinkEvent()
1118 isUp = ((ifinfo->ifi_flags & IFF_UP) != 0); in processNetifLinkEvent()
/external/e2fsprogs/lib/et/
Dcom_err.texinfo20 @ifinfo
25 @end ifinfo
33 @ifinfo
60 @end ifinfo
Dtexinfo.tex2937 % Ignore @ignore, @ifhtml, @ifinfo, and the like.
2945 \def\ifinfo{\doignore{ifinfo}}
2979 % #1 contains the command name as a string, e.g., `ifinfo'.
3002 % If we're here, #1 ends with ^^M\ifinfo (for example).
/external/e2fsprogs/doc/
Dlibext2fs.texinfo8 @ifinfo
13 @end ifinfo
28 @ifinfo
55 @end ifinfo
Dtexinfo.tex2937 % Ignore @ignore, @ifhtml, @ifinfo, and the like.
2945 \def\ifinfo{\doignore{ifinfo}}
2979 % #1 contains the command name as a string, e.g., `ifinfo'.
3002 % If we're here, #1 ends with ^^M\ifinfo (for example).
/external/libffi/
Dtexinfo.tex4053 % Ignore @ignore, @ifhtml, @ifinfo, and the like.
4061 \def\ifinfo{\doignore{ifinfo}}
4095 % #1 contains the command name as a string, e.g., `ifinfo'.
4118 % If we're here, #1 ends with ^^M\ifinfo (for example).
/external/libconfig/aux-build/
Dtexinfo.tex4053 % Ignore @ignore, @ifhtml, @ifinfo, and the like.
4061 \def\ifinfo{\doignore{ifinfo}}
4095 % #1 contains the command name as a string, e.g., `ifinfo'.
4118 % If we're here, #1 ends with ^^M\ifinfo (for example).
/external/python/cpython2/Modules/_ctypes/libffi/
Dtexinfo.tex4053 % Ignore @ignore, @ifhtml, @ifinfo, and the like.
4061 \def\ifinfo{\doignore{ifinfo}}
4095 % #1 contains the command name as a string, e.g., `ifinfo'.
4118 % If we're here, #1 ends with ^^M\ifinfo (for example).
/external/mtools/
Dtexinfo.tex4460 % Ignore @ignore, @ifhtml, @ifinfo, and the like.
4468 \def\ifinfo{\doignore{ifinfo}}
4502 % #1 contains the command name as a string, e.g., `ifinfo'.
4525 % If we're here, #1 ends with ^^M\ifinfo (for example).