/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 59 int ifindex = 0; in print_netconf() local 82 ifindex = rta_getattr_u32(tb[NETCONFA_IFINDEX]); in print_netconf() 84 if (filter.ifindex && filter.ifindex != ifindex) in print_netconf() 103 switch (ifindex) { in print_netconf() 111 fprintf(fp, "dev %s ", ll_index_to_name(ifindex)); in print_netconf() 157 void ipnetconf_reset_filter(int ifindex) in ipnetconf_reset_filter() argument 160 filter.ifindex = ifindex; in ipnetconf_reset_filter() 181 filter.ifindex = ll_name_to_index(*argv); in do_show() 182 if (filter.ifindex <= 0) { in do_show() [all …]
|
D | iplink_hsr.c | 49 int ifindex; in hsr_parse_opt() local 69 ifindex = ll_name_to_index(*argv); in hsr_parse_opt() 70 if (ifindex == 0) in hsr_parse_opt() 72 addattr_l(n, 1024, IFLA_HSR_SLAVE1, &ifindex, 4); in hsr_parse_opt() 75 ifindex = ll_name_to_index(*argv); in hsr_parse_opt() 76 if (ifindex == 0) in hsr_parse_opt() 78 addattr_l(n, 1024, IFLA_HSR_SLAVE2, &ifindex, 4); in hsr_parse_opt()
|
D | ipmacsec.c | 55 int ifindex; member 65 int ifindex; member 374 static int do_modify_nl(enum cmd c, enum macsec_nl_commands cmd, int ifindex, in do_modify_nl() argument 381 addattr32(&req.n, MACSEC_BUFLEN, MACSEC_ATTR_IFINDEX, ifindex); in do_modify_nl() 452 static int do_modify_txsa(enum cmd c, int argc, char **argv, int ifindex) in do_modify_txsa() argument 474 return do_modify_nl(c, cmd, ifindex, NULL, &txsa); in do_modify_txsa() 477 static int do_modify_rxsci(enum cmd c, int argc, char **argv, int ifindex) in do_modify_rxsci() argument 484 rxsc.ifindex = ifindex; in do_modify_rxsci() 502 return do_modify_nl(c, cmd, rxsc.ifindex, &rxsc, &rxsa); in do_modify_rxsci() 507 int ifindex; in do_modify() local [all …]
|
D | iplink_bond.c | 169 unsigned int 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() 243 ifindex = if_nametoindex(*argv); in bond_parse_opt() 244 if (!ifindex) in bond_parse_opt() 246 addattr32(n, 1024, IFLA_BOND_PRIMARY, ifindex); in bond_parse_opt() 372 unsigned int ifindex; in bond_print_opt() local 384 (ifindex = rta_getattr_u32(tb[IFLA_BOND_ACTIVE_SLAVE]))) { in bond_print_opt() 386 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 66 if (ifindex > 0 && ifi->ifi_index != ifindex) in print_token() 97 if ((da.ifindex = ll_name_to_index(*argv)) == 0) in iptoken_list()
|
D | ip_common.h | 9 int ifindex; member 44 void iproute_reset_filter(int ifindex); 45 void ipmroute_reset_filter(int ifindex); 46 void ipaddr_reset_filter(int oneline, int ifindex); 47 void ipneigh_reset_filter(int ifindex); 48 void ipnetconf_reset_filter(int ifindex);
|
D | ipvrf.c | 262 static int vrf_configure_cgroup(const char *path, int ifindex) in vrf_configure_cgroup() argument 278 prog_fd = prog_load(ifindex); in vrf_configure_cgroup() 357 int ifindex = 0; in vrf_switch() local 361 ifindex = name_is_vrf(name); in vrf_switch() 362 if (!ifindex) { in vrf_switch() 402 mnt, vpath, netns, ifindex ? name : ""); in vrf_switch() 413 if (ifindex && vrf_configure_cgroup(path, ifindex)) in vrf_switch() 520 if (vrf_filter.ifindex && vrf_filter.ifindex != ifi->ifi_index) in ipvrf_print()
|
/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/strace/tests/ |
D | nlattr_mdba_router_port.c | 65 .ifindex = ifindex_lo() in init_br_port_msg() 97 const uint32_t ifindex = ifindex_lo(); in main() local 100 MDBA_ROUTER_PORT, pattern, ifindex, in main() 108 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; in main() 109 memcpy(buf, &ifindex, sizeof(ifindex)); in main() 110 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); in main() 111 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type)); in main()
|
/external/strace/tests-m32/ |
D | nlattr_mdba_router_port.c | 65 .ifindex = ifindex_lo() in init_br_port_msg() 97 const uint32_t ifindex = ifindex_lo(); in main() local 100 MDBA_ROUTER_PORT, pattern, ifindex, in main() 108 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; in main() 109 memcpy(buf, &ifindex, sizeof(ifindex)); in main() 110 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); in main() 111 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type)); in main()
|
/external/strace/tests-mx32/ |
D | nlattr_mdba_router_port.c | 65 .ifindex = ifindex_lo() in init_br_port_msg() 97 const uint32_t ifindex = ifindex_lo(); in main() local 100 MDBA_ROUTER_PORT, pattern, ifindex, in main() 108 char buf[NLMSG_ALIGN(ifindex) + NLA_HDRLEN + sizeof(type)]; in main() 109 memcpy(buf, &ifindex, sizeof(ifindex)); in main() 110 memcpy(buf + NLMSG_ALIGN(ifindex), &nla, sizeof(nla)); in main() 111 memcpy(buf + NLMSG_ALIGN(ifindex) + NLA_HDRLEN, &type, sizeof(type)); in main()
|
/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()
|
/external/iproute2/bridge/ |
D | mdb.c | 131 static void print_mdb_entry(FILE *f, int ifindex, struct br_mdb_entry *e, in print_mdb_entry() argument 153 jsonw_string_field(jw_global, "dev", ll_index_to_name(ifindex)); in print_mdb_entry() 156 ll_index_to_name(e->ifindex)); in print_mdb_entry() 169 ll_index_to_name(ifindex), in print_mdb_entry() 170 ll_index_to_name(e->ifindex), in print_mdb_entry() 203 static void br_print_mdb_entry(FILE *f, int ifindex, struct rtattr *attr, in br_print_mdb_entry() argument 216 print_mdb_entry(f, ifindex, e, n, etb); in br_print_mdb_entry() 240 if (filter_index && filter_index != r->ifindex) in print_mdb() 249 br_print_mdb_entry(fp, r->ifindex, i, n); in print_mdb() 256 r->ifindex); in print_mdb() [all …]
|
D | vlan.c | 235 int ifindex) in print_one_vlan_stats() argument 246 if (last_ifidx != ifindex) { in print_one_vlan_stats() 247 ifname = ll_index_to_name(ifindex); in print_one_vlan_stats() 248 last_ifidx = ifindex; in print_one_vlan_stats() 262 static void print_vlan_stats_attr(FILE *fp, struct rtattr *attr, int ifindex) in print_vlan_stats_attr() argument 278 print_one_vlan_stats(fp, RTA_DATA(i), ifindex); in print_vlan_stats_attr() 297 if (filter_index && filter_index != ifsm->ifindex) in print_vlan_stats() 305 ifsm->ifindex); in print_vlan_stats() 309 ifsm->ifindex); in print_vlan_stats() 405 void print_vlan_info(FILE *fp, struct rtattr *tb, int ifindex) in print_vlan_info() argument [all …]
|
/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/strace/ |
D | rtnl_mdb.c | 70 PRINT_FIELD_IFINDEX("{", entry, ifindex); in decode_mdba_mdb_entry_info() 164 uint32_t ifindex; in decode_mdba_router_port() local 166 if (len < sizeof(ifindex)) in decode_mdba_router_port() 168 else if (!umove_or_printaddr(tcp, addr, &ifindex)) in decode_mdba_router_port() 169 print_ifindex(ifindex); in decode_mdba_router_port() 171 const size_t offset = NLMSG_ALIGN(sizeof(ifindex)); in decode_mdba_router_port() 219 PRINT_FIELD_IFINDEX("", bpm, ifindex); in DECL_NETLINK_ROUTE_DECODER()
|
/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()
|
/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()
|