Lines Matching refs:in_dev
227 struct in_device *in_dev;
236 in_dev = __in_dev_get_rcu(dev);
237 if (!in_dev) {
244 parms = in_dev->arp_parms;
340 struct in_device *in_dev;
344 in_dev = __in_dev_get_rcu(dev);
345 if (!in_dev) {
349 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) {
363 if (inet_addr_onlink(in_dev, target, saddr))
396 static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip)
398 struct net *net = dev_net(in_dev->dev);
401 switch (IN_DEV_ARP_IGNORE(in_dev)) {
417 in_dev = NULL;
429 return !inet_confirm_addr(net, in_dev, sip, tip, scope);
432 static int arp_accept(struct in_device *in_dev, __be32 sip)
434 struct net *net = dev_net(in_dev->dev);
437 switch (IN_DEV_ARP_ACCEPT(in_dev)) {
446 return !!inet_confirm_addr(net, in_dev, sip, 0, scope);
473 static inline int arp_fwd_proxy(struct in_device *in_dev,
482 if (!IN_DEV_PROXY_ARP(in_dev))
484 imi = IN_DEV_MEDIUM_ID(in_dev);
518 static inline int arp_fwd_pvlan(struct in_device *in_dev,
530 if (IN_DEV_PROXY_ARP_PVLAN(in_dev))
701 struct in_device *in_dev = __in_dev_get_rcu(dev);
718 if (!in_dev)
787 (!IN_DEV_ROUTE_LOCALNET(in_dev) && ipv4_is_loopback(tip)))
795 if (sip == tip && IN_DEV_ORCONF(in_dev, DROP_GRATUITOUS_ARP))
830 !arp_ignore(in_dev, sip, tip))
845 dont_send = arp_ignore(in_dev, sip, tip);
846 if (!dont_send && IN_DEV_ARPFILTER(in_dev))
859 } else if (IN_DEV_FORWARD(in_dev)) {
861 (arp_fwd_proxy(in_dev, dev, rt) ||
862 arp_fwd_pvlan(in_dev, dev, rt, sip, tip) ||
871 NEIGH_VAR(in_dev->arp_parms, PROXY_DELAY) == 0) {
878 in_dev->arp_parms, skb);
891 if (n || arp_accept(in_dev, sip)) {
896 if (arp_accept(in_dev, sip)) {
1277 struct in_device *in_dev;
1290 in_dev = __in_dev_get_rtnl(dev);
1291 if (!in_dev)
1294 evict_nocarrier = IN_DEV_ARP_EVICT_NOCARRIER(in_dev);