Home
last modified time | relevance | path

Searched refs:ifindex (Results 1 – 25 of 61) sorted by relevance

123

/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_MASQUERADE.c114 ct->nat.masq_index = out->ifindex; in masquerade_target()
128 device_cmp(struct ip_conntrack *i, void *ifindex) in device_cmp() argument
133 ret = (i->nat.masq_index == (int)(long)ifindex); in device_cmp()
149 IP_NF_ASSERT(dev->ifindex != 0); in masq_device_event()
151 ip_ct_iterate_cleanup(device_cmp, (void *)(long)dev->ifindex); in masq_device_event()
168 IP_NF_ASSERT(dev->ifindex != 0); in masq_inet_event()
170 ip_ct_iterate_cleanup(device_cmp, (void *)(long)dev->ifindex); in masq_inet_event()
Dip_queue.c450 dev_cmp(struct ipq_queue_entry *entry, unsigned long ifindex) in dev_cmp() argument
453 if (entry->info->indev->ifindex == ifindex) in dev_cmp()
457 if (entry->info->outdev->ifindex == ifindex) in dev_cmp()
464 ipq_dev_drop(int ifindex) in ipq_dev_drop() argument
468 while ((entry = ipq_find_dequeue_entry(dev_cmp, ifindex)) != NULL) in ipq_dev_drop()
558 ipq_dev_drop(dev->ifindex); in ipq_rcv_dev_event()
/linux-2.4.37.9/net/ipv6/
Danycast.c103 int ipv6_sock_ac_join(struct sock *sk, int ifindex, struct in6_addr *addr) in ipv6_sock_ac_join() argument
121 if (ifindex == 0) { in ipv6_sock_ac_join()
138 dev = dev_get_by_index(ifindex); in ipv6_sock_ac_join()
147 if (ifindex) in ipv6_sock_ac_join()
157 pac->acl_ifindex = dev->ifindex; in ipv6_sock_ac_join()
203 int ipv6_sock_ac_drop(struct sock *sk, int ifindex, struct in6_addr *addr) in ipv6_sock_ac_drop() argument
212 if ((ifindex == 0 || pac->acl_ifindex == ifindex) && in ipv6_sock_ac_drop()
268 int inet6_ac_check(struct sock *sk, struct in6_addr *addr, int ifindex) in inet6_ac_check() argument
277 if (ifindex && pac->acl_ifindex != ifindex) in inet6_ac_check()
456 len += sprintf(buffer+len,"%-4d %-15s ", dev->ifindex, dev->name); in anycast6_get_info()
Dmcast.c174 int ipv6_sock_mc_join(struct sock *sk, int ifindex, struct in6_addr *addr) in ipv6_sock_mc_join() argument
192 if (ifindex == 0) { in ipv6_sock_mc_join()
201 dev = dev_get_by_index(ifindex); in ipv6_sock_mc_join()
208 mc_lst->ifindex = dev->ifindex; in ipv6_sock_mc_join()
237 int ipv6_sock_mc_drop(struct sock *sk, int ifindex, struct in6_addr *addr) in ipv6_sock_mc_drop() argument
244 if (mc_lst->ifindex == ifindex && in ipv6_sock_mc_drop()
251 if ((dev = dev_get_by_index(ifindex)) != NULL) { in ipv6_sock_mc_drop()
270 struct inet6_dev *ip6_mc_find_dev(struct in6_addr *group, int ifindex) in ip6_mc_find_dev() argument
275 if (ifindex == 0) { in ip6_mc_find_dev()
285 dev = dev_get_by_index(ifindex); in ip6_mc_find_dev()
[all …]
Daddrconf.c874 rtmsg.rtmsg_ifindex = dev->ifindex; in addrconf_prefix_route()
900 rtmsg.rtmsg_ifindex = dev->ifindex; in addrconf_add_mroute()
918 rtmsg.rtmsg_ifindex = dev->ifindex; in sit_route_add()
1007 rt = rt6_lookup(&pinfo->prefix, NULL, dev->ifindex, 1); in addrconf_prefix_rcv()
1156 static int inet6_addr_add(int ifindex, struct in6_addr *pfx, int plen) in inet6_addr_add() argument
1165 if ((dev = __dev_get_by_index(ifindex)) == NULL) in inet6_addr_add()
1186 static int inet6_addr_del(int ifindex, struct in6_addr *pfx, int plen) in inet6_addr_del() argument
1192 if ((dev = __dev_get_by_index(ifindex)) == NULL) in inet6_addr_del()
1593 rtmsg.rtmsg_ifindex = ifp->idev->dev->ifindex; in addrconf_rs_timer()
1737 ifp->idev->dev->ifindex, in iface_proc_info()
[all …]
Droute.c161 if (dev->ifindex == oif) in rt6_device_match()
195 sprt->rt6i_dev->ifindex == oif)) in rt6_best_dflt()
288 sprt->rt6i_dev->ifindex == oif))) { in rt6_best_dflt()
453 rt = rt6_device_match(rt, skb->dev->ifindex, strict); in ip6_route_input()
474 rt = rt6_device_match(rt, skb->dev->ifindex, 0); in ip6_route_input()
912 rt->rt6i_dev->ifindex != rtmsg->rtmsg_ifindex)) in ip6_route_del()
940 rt = rt6_lookup(dest, NULL, neigh->dev->ifindex, 1); in rt6_redirect()
1059 rt = rt6_lookup(daddr, saddr, dev->ifindex, 0); in rt6_pmtu_discovery()
1186 rtmsg.rtmsg_ifindex = dev->ifindex; in rt6_add_dflt_router()
1314 rt = rt6_lookup(addr, NULL, loopback_dev.ifindex, 1); in ip6_rt_addr_del()
[all …]
/linux-2.4.37.9/include/net/
Daddrconf.h74 extern int ipv6_sock_mc_join(struct sock *sk, int ifindex,
76 extern int ipv6_sock_mc_drop(struct sock *sk, int ifindex,
99 int ifindex,
102 int ifindex,
105 extern int inet6_ac_check(struct sock *sk, struct in6_addr *addr, int ifindex);
Dif_inet6.h68 int ifindex; member
/linux-2.4.37.9/net/packet/
Daf_packet.c166 int ifindex; member
193 int ifindex; /* bound device */ member
497 sll->sll_ifindex = dev->ifindex; in packet_rcv()
643 sll->sll_ifindex = dev->ifindex; in tpacket_rcv()
693 int ifindex, err, reserve = 0; in packet_sendmsg() local
700 ifindex = sk->protinfo.af_packet->ifindex; in packet_sendmsg()
707 ifindex = saddr->sll_ifindex; in packet_sendmsg()
713 dev = dev_get_by_index(ifindex); in packet_sendmsg()
863 sk->protinfo.af_packet->ifindex = dev ? dev->ifindex : 0; in packet_do_bind()
1047 if (sk->protinfo.af_packet->ifindex < 0) in packet_recvmsg()
[all …]
/linux-2.4.37.9/net/ipv6/netfilter/
Dip6_queue.c454 dev_cmp(struct ipq_queue_entry *entry, unsigned long ifindex) in dev_cmp() argument
457 if (entry->info->indev->ifindex == ifindex) in dev_cmp()
461 if (entry->info->outdev->ifindex == ifindex) in dev_cmp()
468 ipq_dev_drop(int ifindex) in ipq_dev_drop() argument
472 while ((entry = ipq_find_dequeue_entry(dev_cmp, ifindex)) != NULL) in ipq_dev_drop()
562 ipq_dev_drop(dev->ifindex); in ipq_rcv_dev_event()
/linux-2.4.37.9/net/8021q/
Dvlan.c183 struct vlan_group *grp = __vlan_find_group(real_dev->ifindex); in __find_vlan_dev()
201 int real_dev_ifindex = real_dev->ifindex; in unregister_vlan_dev()
504 real_dev->ifindex); in register_vlan_device()
511 grp = __vlan_find_group(real_dev->ifindex); in register_vlan_device()
524 grp->real_dev_ifindex = real_dev->ifindex; in register_vlan_device()
580 grp = __vlan_find_group(dev->ifindex); in vlan_device_event()
/linux-2.4.37.9/net/core/
Ddev.c487 struct net_device * __dev_get_by_index(int ifindex) in __dev_get_by_index() argument
492 if (dev->ifindex == ifindex) in __dev_get_by_index()
509 struct net_device * dev_get_by_index(int ifindex) in dev_get_by_index() argument
514 dev = __dev_get_by_index(ifindex); in dev_get_by_index()
2167 ifr->ifr_ifindex = dev->ifindex; in dev_ifsioc()
2450 static int ifindex; in dev_new_index() local
2452 if (++ifindex <= 0) in dev_new_index()
2453 ifindex=1; in dev_new_index()
2454 if (__dev_get_by_index(ifindex) == NULL) in dev_new_index()
2455 return ifindex; in dev_new_index()
[all …]
Drtnetlink.c166 r->ifi_index = dev->ifindex; in rtnetlink_fill_ifinfo()
184 if (dev->ifindex != dev->iflink) in rtnetlink_fill_ifinfo()
191 RTA_PUT(skb, IFLA_MASTER, sizeof(int), &dev->master->ifindex); in rtnetlink_fill_ifinfo()
/linux-2.4.37.9/include/linux/
Digmp.h202 struct ip_mreq_source *mreqs, int ifindex);
203 extern int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf,int ifindex);
Dnetdevice.h289 int ifindex; member
505 extern struct net_device *dev_get_by_index(int ifindex);
506 extern struct net_device *__dev_get_by_index(int ifindex);
/linux-2.4.37.9/net/wanrouter/
Daf_wanpipe.c249 sll->sll_ifindex = dev->ifindex; in wanpipe_rcv()
366 newsk->bound_dev_if = dev->ifindex; in wanpipe_listen_rcv()
418 sll->sll_ifindex = dev->ifindex; in wanpipe_listen_rcv()
551 int ifindex, err, reserve = 0; in wanpipe_sendmsg() local
569 ifindex = sk->bound_dev_if; in wanpipe_sendmsg()
578 ifindex = sk->bound_dev_if; in wanpipe_sendmsg()
583 dev = dev_get_by_index(ifindex); in wanpipe_sendmsg()
585 printk(KERN_INFO "wansock: Send failed, dev index: %i\n",ifindex); in wanpipe_sendmsg()
1385 sk->bound_dev_if = dev->ifindex; in wanpipe_do_bind()
1540 if (tmp_dev->ifindex == dev->ifindex){ in check_dev()
[all …]
/linux-2.4.37.9/net/ipv4/
Droute.c848 int ikeys[2] = { dev->ifindex, 0 }; in ip_rt_redirect()
1355 rth->key.iif = dev->ifindex; in ip_route_input_mc()
1375 hash = rt_hash_code(daddr, saddr ^ (dev->ifindex << 5), tos); in ip_route_input_mc()
1423 key.iif = dev->ifindex; in ip_route_input_slow()
1491 loopback_dev.ifindex, in ip_route_input_slow()
1561 rth->key.iif = dev->ifindex; in ip_route_input_slow()
1638 rth->key.iif = dev->ifindex; in ip_route_input_slow()
1712 int iif = dev->ifindex; in ip_route_input()
1792 key.iif = loopback_dev.ifindex; in ip_route_output_slow()
1841 key.oif = dev_out->ifindex; in ip_route_output_slow()
[all …]
Dfib_rules.c217 new_r->r_ifindex = dev->ifindex; in inet_rtm_newrule()
289 if (r->r_ifindex == dev->ifindex) { in fib_rules_detach()
304 r->r_ifindex = dev->ifindex; in fib_rules_attach()
Dip_nat_dumb.c125 key.iif = skb->dev->ifindex; in ip_do_nat()
Digmp.c286 if (ip_route_output(&rt, dst, 0, 0, dev->ifindex)) in igmpv3_newpack()
626 if (ip_route_output(&rt, dst, 0, 0, dev->ifindex)) in igmp_send_report()
1312 imr->imr_ifindex = dev->ifindex; in ip_mc_find_dev()
1713 ip_mreq_source *mreqs, int ifindex) in ip_mc_source() argument
1731 imr.imr_ifindex = ifindex; in ip_mc_source()
1831 int ip_mc_msfilter(struct sock *sk, struct ip_msfilter *msf, int ifindex) in ip_mc_msfilter() argument
1851 imr.imr_ifindex = ifindex; in ip_mc_msfilter()
2141 dev->ifindex, dev->name, dev->mc_count, querier); in ip_mc_procinfo()
2209 "0x%08x %6lu %6lu\n", dev->ifindex, in ip_mcf_procinfo()
/linux-2.4.37.9/net/decnet/
Ddn_rules.c173 new_r->r_ifindex = dev->ifindex; in dn_fib_rtm_newrule()
260 if (r->r_ifindex == dev->ifindex) { in dn_fib_rules_detach()
275 r->r_ifindex = dev->ifindex; in dn_fib_rules_attach()
Ddn_route.c527 cb->iif = dev->ifindex; in dn_route_rcv()
664 if (cb->iif == dst->dev->ifindex) in dn_forward()
800 rt->key.oif = neigh ? neigh->dev->ifindex : -1; in dn_route_output_slow()
928 key.iif = dev->ifindex; in dn_route_input_slow()
980 rt->key.iif = dev->ifindex; in dn_route_input_slow()
1051 RTA_PUT(skb, RTA_OIF, sizeof(int), &rt->u.dst.dev->ifindex); in dn_rt_fill_info()
/linux-2.4.37.9/net/bridge/
Dbr_if.c267 indices[i++] = dev->ifindex; in br_get_bridge_ifindices()
280 ifindices[p->port_no] = p->dev->ifindex; in br_get_port_ifindices()
/linux-2.4.37.9/net/ipv4/ipvs/
Dip_vs_sync.c379 if (sk->bound_dev_if && dev->ifindex != sk->bound_dev_if) in set_mcast_if()
383 sk->protinfo.af_inet.mc_index = dev->ifindex; in set_mcast_if()
407 if (sk->bound_dev_if && dev->ifindex != sk->bound_dev_if) in join_mcast_group()
410 mreq.imr_ifindex = dev->ifindex; in join_mcast_group()
/linux-2.4.37.9/drivers/net/
Dmvme147.c145 dev->ifindex = dev_new_index(); in mvme147lance_probe()

123