/external/iputils/ninfod/ |
D | ninfod_addrs.c | 155 unsigned int ifindex = 0; in pr_nodeinfo_ipv6addr() local 177 if (!ifindex && in pr_nodeinfo_ipv6addr() 185 ifindex = p->pktinfo.ipi6_ifindex; in pr_nodeinfo_ipv6addr() 196 if (!ifindex || in pr_nodeinfo_ipv6addr() 197 (p->pktinfo.ipi6_ifindex == ifindex)) in pr_nodeinfo_ipv6addr() 198 ifindex = ifa->ifa_ifindex; in pr_nodeinfo_ipv6addr() 201 if (!ifindex) { in pr_nodeinfo_ipv6addr() 206 *subj_if = ifindex; in pr_nodeinfo_ipv6addr() 208 ifindex = subj_if ? *subj_if : 0; in pr_nodeinfo_ipv6addr() 209 if (ifindex == 0) in pr_nodeinfo_ipv6addr() [all …]
|
/external/iproute2/ip/ |
D | ipnetconf.c | 30 int ifindex; member 84 int *ifindex = (int *)RTA_DATA(tb[NETCONFA_IFINDEX]); in print_netconf() local 86 switch (*ifindex) { in print_netconf() 94 fprintf(fp, "dev %s ", ll_index_to_name(*ifindex)); in print_netconf() 133 void ipnetconf_reset_filter(int ifindex) in ipnetconf_reset_filter() argument 136 filter.ifindex = ifindex; in ipnetconf_reset_filter() 155 filter.ifindex = ll_name_to_index(*argv); in do_show() 156 if (filter.ifindex <= 0) { in do_show() 166 if (filter.ifindex) { in do_show() 172 if (filter.ifindex) in do_show() [all …]
|
D | iplink_hsr.c | 47 int ifindex; in hsr_parse_opt() local 59 ifindex = ll_name_to_index(*argv); in hsr_parse_opt() 60 if (ifindex == 0) in hsr_parse_opt() 62 addattr_l(n, 1024, IFLA_HSR_SLAVE1, &ifindex, 4); in hsr_parse_opt() 65 ifindex = ll_name_to_index(*argv); in hsr_parse_opt() 66 if (ifindex == 0) in hsr_parse_opt() 68 addattr_l(n, 1024, IFLA_HSR_SLAVE2, &ifindex, 4); in hsr_parse_opt()
|
D | iplink_bond.c | 169 unsigned ifindex; in bond_parse_opt() local 180 ifindex = if_nametoindex(*argv); in bond_parse_opt() 181 if (!ifindex) in bond_parse_opt() 183 addattr32(n, 1024, IFLA_BOND_ACTIVE_SLAVE, ifindex); in bond_parse_opt() 242 ifindex = if_nametoindex(*argv); in bond_parse_opt() 243 if (!ifindex) in bond_parse_opt() 245 addattr32(n, 1024, IFLA_BOND_PRIMARY, ifindex); in bond_parse_opt() 371 unsigned ifindex; in bond_print_opt() local 383 (ifindex = rta_getattr_u32(tb[IFLA_BOND_ACTIVE_SLAVE]))) { in bond_print_opt() 385 const char *n = if_indextoname(ifindex, buf); in bond_print_opt() [all …]
|
D | iptoken.c | 34 int ifindex; member 49 int ifindex = args->ifindex; in print_token() local 67 if (ifindex > 0 && ifi->ifi_index != ifindex) in print_token() 105 if ((da.ifindex = ll_name_to_index(*argv)) == 0) in iptoken_list()
|
D | ip_common.h | 16 void iproute_reset_filter(int ifindex); 17 void ipmroute_reset_filter(int ifindex); 18 void ipaddr_reset_filter(int oneline, int ifindex); 19 void ipneigh_reset_filter(int ifindex); 20 void ipnetconf_reset_filter(int ifindex);
|
D | ipmonitor.c | 163 int ifindex=0; in do_ipmonitor() local 225 ifindex = ll_name_to_index(*argv); in do_ipmonitor() 226 if (!ifindex) in do_ipmonitor() 235 ipaddr_reset_filter(1, ifindex); in do_ipmonitor() 236 iproute_reset_filter(ifindex); in do_ipmonitor() 237 ipmroute_reset_filter(ifindex); in do_ipmonitor() 238 ipneigh_reset_filter(ifindex); in do_ipmonitor() 239 ipnetconf_reset_filter(ifindex); in do_ipmonitor()
|
/external/libnl/python/netlink/route/ |
D | tc.py | 92 diff = self.ifindex - other.ifindex 107 def ifindex(self): member in Tc 111 @ifindex.setter 112 def ifindex(self, value): member in Tc 197 return buf + util.num(self.ifindex) 291 ret += get_cls(self.ifindex, parent=self.handle) 294 ret += get_class(self.ifindex, parent=TC_H_ROOT) 296 ret += get_class(self.ifindex, parent=self.handle) 396 def __init__(self, ifindex, cache=None): argument 402 self._set_arg1(ifindex) [all …]
|
/external/iproute2/bridge/ |
D | mdb.c | 51 static void print_mdb_entry(FILE *f, int ifindex, struct br_mdb_entry *e, in print_mdb_entry() argument 63 fprintf(f, "dev %s port %s grp %s %s", ll_index_to_name(ifindex), in print_mdb_entry() 64 ll_index_to_name(e->ifindex), in print_mdb_entry() 72 static void br_print_mdb_entry(FILE *f, int ifindex, struct rtattr *attr, in br_print_mdb_entry() argument 82 print_mdb_entry(f, ifindex, e, n); in br_print_mdb_entry() 106 if (filter_index && filter_index != r->ifindex) in print_mdb() 115 br_print_mdb_entry(fp, r->ifindex, i, n); in print_mdb() 122 ll_index_to_name(r->ifindex)); in print_mdb() 134 ll_index_to_name(r->ifindex)); in print_mdb() 228 req.bpm.ifindex = ll_name_to_index(d); in mdb_modify() [all …]
|
/external/libnl/src/ |
D | nl-tctree-list.c | 24 static int ifindex; variable 57 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0) in print_class() 90 if (rtnl_cls_alloc_cache(sock, ifindex, parent, &cls_cache) < 0) in print_qdisc() 103 ifindex = rtnl_link_get_ifindex(link); in print_link() 107 if (rtnl_class_alloc_cache(sock, ifindex, &class_cache) < 0) in print_link() 110 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, TC_H_ROOT); in print_link() 116 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, 0); in print_link() 122 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, TC_H_INGRESS); in print_link()
|
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) in list_classes() argument 69 class_cache = nl_cli_class_alloc_cache(sock, ifindex); in list_classes() 80 static void list_cls(int ifindex, uint32_t parent) in list_cls() argument 84 cls_cache = nl_cli_cls_alloc_cache(sock, ifindex, parent); in list_cls() 110 static void list_qdiscs(int ifindex, uint32_t parent) in list_qdiscs() argument 117 rtnl_tc_set_ifindex((struct rtnl_tc *) filter, ifindex); in list_qdiscs()
|
D | nl-class-list.c | 47 static void __dump_class(int ifindex, struct rtnl_class *filter) in __dump_class() argument 51 cache = nl_cli_class_alloc_cache(sock, ifindex); in __dump_class() 67 int ifindex; in main() local 111 if ((ifindex = rtnl_tc_get_ifindex(tc))) in main() 112 __dump_class(ifindex, class); in main()
|
D | nl-link-ifindex2name.c | 26 uint32_t ifindex; in main() local 35 ifindex = nl_cli_parse_u32(argv[1]); in main() 37 if (!rtnl_link_i2name(link_cache, ifindex, name, sizeof(name))) in main() 39 ifindex); in main()
|
D | nl-cls-list.c | 49 static void __dump_link(int ifindex, struct rtnl_cls *filter) in __dump_link() argument 54 cache = nl_cli_cls_alloc_cache(sock, ifindex, parent); in __dump_link() 71 int ifindex; in main() local 123 if ((ifindex = rtnl_tc_get_ifindex(tc))) in main() 124 __dump_link(ifindex, cls); in main()
|
D | nl-cls-delete.c | 71 static void __delete_link(int ifindex, struct rtnl_cls *filter) in __delete_link() argument 76 cache = nl_cli_cls_alloc_cache(sock, ifindex, parent); in __delete_link() 93 int ifindex; in main() local 146 if ((ifindex = rtnl_tc_get_ifindex(tc))) in main() 147 __delete_link(ifindex, cls); in main()
|
D | nl-link-name2ifindex.c | 25 uint32_t ifindex; in main() local 34 if (!(ifindex = rtnl_link_name2i(link_cache, argv[1]))) in main() 38 printf("%u\n", ifindex); in main()
|
/external/wpa_supplicant_8/src/drivers/ |
D | linux_ioctl.c | 163 int ifindex; in linux_br_add_if() local 165 ifindex = if_nametoindex(ifname); in linux_br_add_if() 166 if (ifindex == 0) in linux_br_add_if() 171 ifr.ifr_ifindex = ifindex; in linux_br_add_if() 185 int ifindex; in linux_br_del_if() local 187 ifindex = if_nametoindex(ifname); in linux_br_del_if() 188 if (ifindex == 0) in linux_br_del_if() 193 ifr.ifr_ifindex = ifindex; in linux_br_del_if()
|
/external/android-clat/ |
D | setif.c | 134 static int do_anycast_setsockopt(int sock, int what, struct in6_addr *addr, int ifindex) { in do_anycast_setsockopt() argument 135 struct ipv6_mreq mreq = { *addr, ifindex }; in do_anycast_setsockopt() 162 int ifindex; in add_anycast_address() local 164 ifindex = if_nametoindex(ifname); in add_anycast_address() 165 if (!ifindex) { in add_anycast_address() 170 return do_anycast_setsockopt(sock, IPV6_JOIN_ANYCAST, addr, ifindex); in add_anycast_address()
|
D | getaddr.c | 35 unsigned int ifindex; member 54 if(ifa_p->ifa_index != targ_p->ifindex) in getaddr_cb() 108 targ.ifindex = if_nametoindex(interface); in getinterface_ip() 109 if(targ.ifindex == 0) { in getinterface_ip()
|
/external/tcpdump/tests/ |
D | sflow_multiple_counter_30_pdus.out | 5 ifindex 55, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) 17 ifindex 56, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) 29 ifindex 57, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) 41 ifindex 60, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) 53 ifindex 61, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) 65 ifindex 62, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) 77 ifindex 63, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) 91 ifindex 1, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) 103 ifindex 2, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) 115 ifindex 3, iftype 117, ifspeed 1000000000, ifdirection 1 (full-duplex) [all …]
|
/external/ltp/testcases/network/stress/ns-tools/ |
D | ns-mcast_join.c | 68 uint32_t ifindex; /* interface index where listening multicast */ variable 194 ifindex = if_nametoindex(optarg); in parse_options() 195 if (ifindex == 0) { in parse_options() 268 if (ifindex == 0) { in parse_options() 368 grp_info = create_group_info(ifindex, maddr_info); in join_group() 384 create_source_filter(ifindex, maddr_info, fmode, in join_group() 447 grp_info = create_group_info(ifindex, maddr_info); in join_leave_group() 449 gsf = create_source_filter(ifindex, maddr_info, fmode, saddrs); in join_leave_group()
|
D | ns-mcast_receiver.c | 162 uint32_t ifindex = 0; /* interface index where listening multicast */ in parse_options() local 188 ifindex = if_nametoindex(optarg); in parse_options() 189 if (ifindex == 0) { in parse_options() 258 if (ifindex == 0) { in parse_options() 274 info_p->greq = create_group_info(ifindex, info_p->mainfo); in parse_options() 281 create_source_filter(ifindex, info_p->mainfo, fmode, in parse_options()
|
D | ns-common.c | 368 int get_a_lla_byifindex(struct sockaddr_in6 *lla_p, int ifindex) in get_a_lla_byifindex() argument 397 if (ifidx != ifindex) in get_a_lla_byifindex() 410 lla_p->sin6_scope_id = ifindex; in get_a_lla_byifindex() 477 struct group_req *create_group_info(uint32_t ifindex, struct addrinfo *mainfo_p) in create_group_info() argument 487 greq->gr_interface = ifindex; in create_group_info() 509 struct group_filter *create_source_filter(uint32_t ifindex, in create_source_filter() argument 536 gsf->gf_interface = ifindex; in create_source_filter()
|
/external/iputils/ |
D | rarpd.c | 70 int ifindex; member 239 struct ifaddr *select_ipaddr(int ifindex, __u32 *sel_addr, __u32 **alist) in select_ipaddr() argument 248 if (ifl->index == ifindex) in select_ipaddr() 280 struct rarp_map *rarp_lookup(int ifindex, int hatype, in rarp_lookup() argument 290 if (r->ifindex != ifindex && r->ifindex != 0) in rarp_lookup() 318 ifa = select_ipaddr(ifindex, &emap.ipaddr, (__u32 **)hp->h_addr_list); in rarp_lookup() 347 int put_mylladdr(unsigned char **ptr_p, int ifindex, int alen) in put_mylladdr() argument 352 if (ifl->index == ifindex) in put_mylladdr() 363 int put_myipaddr(unsigned char **ptr_p, int ifindex, __u32 hisipaddr) in put_myipaddr() argument 370 if (ifl->index == ifindex) in put_myipaddr() [all …]
|
/external/libnl/lib/route/act/ |
D | mirred.c | 67 nl_dump(p, " index %u", u->m_parm.ifindex); in mirred_dump_line() 163 int rtnl_mirred_set_ifindex(struct rtnl_act *act, uint32_t ifindex) in rtnl_mirred_set_ifindex() argument 170 u->m_parm.ifindex = ifindex; in rtnl_mirred_set_ifindex() 179 return u->m_parm.ifindex; in rtnl_mirred_get_ifindex()
|