/external/strace/ |
H A D | print_ifindex.c | 32 print_ifindex(const unsigned int ifindex) argument 37 if (if_indextoname(ifindex, buf)) { 45 tprintf("%u", ifindex);
|
H A D | rtnl_mdb.c | 70 PRINT_FIELD_IFINDEX("{", entry, ifindex); 164 uint32_t ifindex; local 166 if (len < sizeof(ifindex)) 168 else if (!umove_or_printaddr(tcp, addr, &ifindex)) 169 print_ifindex(ifindex); 171 const size_t offset = NLMSG_ALIGN(sizeof(ifindex)); 219 PRINT_FIELD_IFINDEX("", bpm, ifindex);
|
/external/libnl/src/ |
H A D | nl-link-name2ifindex.c | 25 uint32_t ifindex; local 34 if (!(ifindex = rtnl_link_name2i(link_cache, argv[1]))) 38 printf("%u\n", ifindex);
|
H A D | nl-link-ifindex2name.c | 17 printf("Usage: nl-link-ifindex2name <ifindex>\n"); 26 uint32_t ifindex; local 35 ifindex = nl_cli_parse_u32(argv[1]); 37 if (!rtnl_link_i2name(link_cache, ifindex, name, sizeof(name))) 39 ifindex);
|
H A D | nl-class-list.c | 47 static void __dump_class(int ifindex, struct rtnl_class *filter) argument 51 cache = nl_cli_class_alloc_cache(sock, ifindex); 67 int ifindex; local 111 if ((ifindex = rtnl_tc_get_ifindex(tc))) 112 __dump_class(ifindex, class);
|
H A D | nl-cls-list.c | 49 static void __dump_link(int ifindex, struct rtnl_cls *filter) argument 54 cache = nl_cli_cls_alloc_cache(sock, ifindex, parent); 71 int ifindex; local 123 if ((ifindex = rtnl_tc_get_ifindex(tc))) 124 __dump_link(ifindex, cls);
|
H A D | nl-qdisc-list.c | 52 static void list_classes(int ifindex, uint32_t parent); 53 static void list_qdiscs(int ifindex, uint32_t parent); 64 static void list_classes(int ifindex, uint32_t parent) argument 69 class_cache = nl_cli_class_alloc_cache(sock, ifindex); 80 static void list_cls(int ifindex, uint32_t parent) argument 84 cls_cache = nl_cli_cls_alloc_cache(sock, ifindex, parent); 110 static void list_qdiscs(int ifindex, uint32_t parent) argument 117 rtnl_tc_set_ifindex((struct rtnl_tc *) filter, ifindex);
|
H A D | nl-tctree-list.c | 24 static int ifindex; variable 57 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0) 90 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0) 103 ifindex = rtnl_link_get_ifindex(link); 107 if (rtnl_class_alloc_cache(sock, ifindex, &class_cache) < 0) 110 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, TC_H_ROOT); 116 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, 0); 122 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, TC_H_INGRESS);
|
H A D | nl-cls-delete.c | 71 static void __delete_link(int ifindex, struct rtnl_cls *filter) argument 76 cache = nl_cli_cls_alloc_cache(sock, ifindex, parent); 93 int ifindex; local 146 if ((ifindex = rtnl_tc_get_ifindex(tc))) 147 __delete_link(ifindex, cls);
|
/external/libnl/src/lib/ |
H A D | class.c | 31 struct nl_cache *nl_cli_class_alloc_cache(struct nl_sock *sock, int ifindex) argument 36 if ((err = rtnl_class_alloc_cache(sock, ifindex, &cache)) < 0)
|
H A D | cls.c | 32 struct nl_cache *nl_cli_cls_alloc_cache(struct nl_sock *sock, int ifindex, argument 38 if ((err = rtnl_cls_alloc_cache(sock, ifindex, parent, &cache)) < 0)
|
/external/strace/tests/ |
H A D | nlattr_mdba_router_port.c | 65 .ifindex = ifindex_lo() 80 ", ifindex=" IFINDEX_LO_STR "}" 97 const uint32_t ifindex = ifindex_lo(); local 100 MDBA_ROUTER_PORT, pattern, ifindex, 108 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; 109 memcpy(buf, &ifindex, sizeof(ifindex)); 110 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); 111 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type));
|
/external/strace/tests-m32/ |
H A D | nlattr_mdba_router_port.c | 65 .ifindex = ifindex_lo() 80 ", ifindex=" IFINDEX_LO_STR "}" 97 const uint32_t ifindex = ifindex_lo(); local 100 MDBA_ROUTER_PORT, pattern, ifindex, 108 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; 109 memcpy(buf, &ifindex, sizeof(ifindex)); 110 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); 111 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type));
|
/external/strace/tests-mx32/ |
H A D | nlattr_mdba_router_port.c | 65 .ifindex = ifindex_lo() 80 ", ifindex=" IFINDEX_LO_STR "}" 97 const uint32_t ifindex = ifindex_lo(); local 100 MDBA_ROUTER_PORT, pattern, ifindex, 108 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; 109 memcpy(buf, &ifindex, sizeof(ifindex)); 110 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); 111 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type));
|
/external/iputils/ninfod/ |
H A D | ninfod_addrs.c | 155 unsigned int ifindex = 0; local 177 if (!ifindex && 185 ifindex = p->pktinfo.ipi6_ifindex; 196 if (!ifindex || 197 (p->pktinfo.ipi6_ifindex == ifindex)) 198 ifindex = ifa->ifa_ifindex; 201 if (!ifindex) { 206 *subj_if = ifindex; 208 ifindex = subj_if ? *subj_if : 0; 209 if (ifindex 324 unsigned int ifindex = 0; local [all...] |
/external/iproute2/include/uapi/linux/tc_act/ |
H A D | tc_mirred.h | 17 __u32 ifindex; /* ifindex of egress port */ member in struct:tc_mirred
|
/external/iproute2/ip/ |
H A D | ipnetconf.c | 30 int ifindex; member in struct:__anon8812 59 int ifindex = 0; local 82 ifindex = rta_getattr_u32(tb[NETCONFA_IFINDEX]); 84 if (filter.ifindex && filter.ifindex != ifindex) 103 switch (ifindex) { 111 fprintf(fp, "dev %s ", ll_index_to_name(ifindex)); 157 void ipnetconf_reset_filter(int ifindex) argument 160 filter.ifindex [all...] |
H A D | iplink_hsr.c | 49 int ifindex; local 69 ifindex = ll_name_to_index(*argv); 70 if (ifindex == 0) 72 addattr_l(n, 1024, IFLA_HSR_SLAVE1, &ifindex, 4); 75 ifindex = ll_name_to_index(*argv); 76 if (ifindex == 0) 78 addattr_l(n, 1024, IFLA_HSR_SLAVE2, &ifindex, 4);
|
/external/kernel-headers/original/uapi/linux/tc_act/ |
H A D | tc_mirred.h | 17 __u32 ifindex; /* ifindex of egress port */ member in struct:tc_mirred
|
/external/libnl/include/linux-private/linux/tc_act/ |
H A D | tc_mirred.h | 16 __u32 ifindex; /* ifindex of egress port */ member in struct:tc_mirred
|
/external/android-clat/ |
H A D | setif.c | 134 static int do_anycast_setsockopt(int sock, int what, struct in6_addr *addr, int ifindex) { argument 135 struct ipv6_mreq mreq = { *addr, ifindex }; 162 int ifindex; local 164 ifindex = if_nametoindex(ifname); 165 if (!ifindex) { 166 logmsg(ANDROID_LOG_ERROR, "%s: unknown ifindex for interface %s", __func__, ifname); 170 return do_anycast_setsockopt(sock, IPV6_JOIN_ANYCAST, addr, ifindex);
|
/external/mdnsresponder/mDNSWindows/ |
H A D | PosixCompat.h | 42 if_indextoname( unsigned ifindex, char * ifname );
|
/external/wpa_supplicant_8/hostapd/src/drivers/ |
H A D | netlink.h | 25 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
|
/external/wpa_supplicant_8/src/drivers/ |
H A D | netlink.h | 25 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
|
/external/wpa_supplicant_8/wpa_supplicant/src/drivers/ |
H A D | netlink.h | 25 int netlink_send_oper_ifla(struct netlink_data *netlink, int ifindex,
|