HomeSort by relevance Sort by last modified time
    Searched defs:ifindex (Results 1 - 25 of 108) sorted by null

1 2 3 4 5

  /external/libnl/src/
nl-link-name2ifindex.c 25 uint32_t ifindex; local
34 if (!(ifindex = rtnl_link_name2i(link_cache, argv[1])))
38 printf("%u\n", ifindex);
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);
nl-class-list.c 47 static void __dump_class(int ifindex, struct rtnl_class *filter)
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);
nl-cls-delete.c 71 static void __delete_link(int ifindex, struct rtnl_cls *filter)
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);
nl-cls-list.c 49 static void __dump_link(int ifindex, struct rtnl_cls *filter)
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);
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);
  /external/iproute2/ip/
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);
ipnetconf.c 30 int ifindex; member in struct:__anon22163
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)
160 filter.ifindex = ifindex
    [all...]
ipmonitor.c 162 int ifindex = 0; local
225 ifindex = ll_name_to_index(*argv);
226 if (!ifindex)
235 ipaddr_reset_filter(1, ifindex);
236 iproute_reset_filter(ifindex);
237 ipmroute_reset_filter(ifindex);
238 ipneigh_reset_filter(ifindex);
239 ipnetconf_reset_filter(ifindex);
iptoken.c 34 int ifindex; member in struct:rtnl_dump_args
49 int ifindex = args->ifindex; local
66 if (ifindex > 0 && ifi->ifi_index != ifindex)
97 if ((da.ifindex = ll_name_to_index(*argv)) == 0)
  /bionic/libc/kernel/uapi/linux/tc_act/
tc_mirred.h 31 __u32 ifindex; member in struct:tc_mirred
  /external/android-clat/
getaddr.c 35 unsigned int ifindex; member in struct:target
54 if(ifa_p->ifa_index != targ_p->ifindex)
108 targ.ifindex = if_nametoindex(interface);
109 if(targ.ifindex == 0) {
setif.c 134 static int do_anycast_setsockopt(int sock, int what, struct in6_addr *addr, int ifindex) {
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/iproute2/include/uapi/linux/tc_act/
tc_mirred.h 17 __u32 ifindex; /* ifindex of egress port */ member in struct:tc_mirred
  /external/kernel-headers/original/uapi/linux/tc_act/
tc_mirred.h 17 __u32 ifindex; /* ifindex of egress port */ member in struct:tc_mirred
  /external/libnl/include/linux-private/linux/tc_act/
tc_mirred.h 16 __u32 ifindex; /* ifindex of egress port */ member in struct:tc_mirred
  /external/strace/tests/
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/
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/
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));
  /prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/tc_act/
tc_mirred.h 16 __u32 ifindex; /* ifindex of egress port */ member in struct:tc_mirred
  /system/netd/tests/
tun_interface.h 36 int ifindex() const { return mIfIndex; } function in class:android::net::TunInterface
  /external/iputils/ninfod/
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 == 0
324 unsigned int ifindex = 0; local
    [all...]
  /external/strace/
nlattr.h 64 DECL_NLA(ifindex); variable
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);
netlink_inet_diag.c 125 uint32_t ifindex; local
127 if (len < sizeof(ifindex))
129 else if (!umove_or_printaddr(tcp, addr, &ifindex))
130 print_ifindex(ifindex);

Completed in 649 milliseconds

1 2 3 4 5