Lines Matching refs:in_dev
226 struct in_device *in_dev;
235 in_dev = __in_dev_get_rcu(dev);
236 if (!in_dev) {
243 parms = in_dev->arp_parms;
339 struct in_device *in_dev;
343 in_dev = __in_dev_get_rcu(dev);
344 if (!in_dev) {
348 switch (IN_DEV_ARP_ANNOUNCE(in_dev)) {
362 if (inet_addr_onlink(in_dev, target, saddr))
395 static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip)
397 struct net *net = dev_net(in_dev->dev);
400 switch (IN_DEV_ARP_IGNORE(in_dev)) {
416 in_dev = NULL;
428 return !inet_confirm_addr(net, in_dev, sip, tip, scope);
452 static inline int arp_fwd_proxy(struct in_device *in_dev,
461 if (!IN_DEV_PROXY_ARP(in_dev))
463 imi = IN_DEV_MEDIUM_ID(in_dev);
497 static inline int arp_fwd_pvlan(struct in_device *in_dev,
509 if (IN_DEV_PROXY_ARP_PVLAN(in_dev))
680 struct in_device *in_dev = __in_dev_get_rcu(dev);
697 if (!in_dev)
766 (!IN_DEV_ROUTE_LOCALNET(in_dev) && ipv4_is_loopback(tip)))
774 if (sip == tip && IN_DEV_ORCONF(in_dev, DROP_GRATUITOUS_ARP))
809 !arp_ignore(in_dev, sip, tip))
824 dont_send = arp_ignore(in_dev, sip, tip);
825 if (!dont_send && IN_DEV_ARPFILTER(in_dev))
838 } else if (IN_DEV_FORWARD(in_dev)) {
840 (arp_fwd_proxy(in_dev, dev, rt) ||
841 arp_fwd_pvlan(in_dev, dev, rt, sip, tip) ||
850 NEIGH_VAR(in_dev->arp_parms, PROXY_DELAY) == 0) {
857 in_dev->arp_parms, skb);
870 if (n || IN_DEV_ARP_ACCEPT(in_dev)) {
875 if (IN_DEV_ARP_ACCEPT(in_dev)) {