Lines Matching refs:ifindex

31 	int	ifindex;  member
56 int ifindex; member
213 static int netlink_get_class(int sock, unsigned int nl_pid, int ifindex, in netlink_get_class() argument
224 .t.tcm_ifindex = ifindex, in netlink_get_class()
252 static int netlink_get_qdisc(int sock, unsigned int nl_pid, int ifindex, in netlink_get_qdisc() argument
263 .t.tcm_ifindex = ifindex, in netlink_get_qdisc()
291 static int netlink_get_filter(int sock, unsigned int nl_pid, int ifindex, int handle, in netlink_get_filter() argument
302 .t.tcm_ifindex = ifindex, in netlink_get_filter()
369 netinfo->devices[netinfo->used_len].ifindex = ifinfo->ifi_index; in dump_link_nlmsg()
420 filter_info->devname, filter_info->ifindex); in dump_filter_nlmsg()
435 ret = netlink_get_class(sock, nl_pid, dev->ifindex, in show_dev_tc_bpf()
441 ret = netlink_get_qdisc(sock, nl_pid, dev->ifindex, in show_dev_tc_bpf()
447 filter_info.ifindex = dev->ifindex; in show_dev_tc_bpf()
450 ret = netlink_get_filter(sock, nl_pid, dev->ifindex, in show_dev_tc_bpf()
460 ret = netlink_get_filter(sock, nl_pid, dev->ifindex, handle, in show_dev_tc_bpf()
467 ret = netlink_get_filter(sock, nl_pid, dev->ifindex, handle, in show_dev_tc_bpf()
474 ret = netlink_get_filter(sock, nl_pid, dev->ifindex, handle, in show_dev_tc_bpf()
522 int ifindex; in net_parse_dev() local
527 ifindex = if_nametoindex(**argv); in net_parse_dev()
528 if (!ifindex) in net_parse_dev()
537 return ifindex; in net_parse_dev()
541 int ifindex, bool overwrite) in do_attach_detach_xdp() argument
554 return bpf_set_link_xdp_fd(ifindex, progfd, flags); in do_attach_detach_xdp()
560 int progfd, ifindex, err = 0; in do_attach() local
578 ifindex = net_parse_dev(&argc, &argv); in do_attach()
579 if (ifindex < 1) { in do_attach()
596 err = do_attach_detach_xdp(progfd, attach_type, ifindex, in do_attach()
614 int progfd, ifindex, err = 0; in do_detach() local
627 ifindex = net_parse_dev(&argc, &argv); in do_detach()
628 if (ifindex < 1) in do_detach()
634 err = do_attach_detach_xdp(progfd, attach_type, ifindex, NULL); in do_detach()