Lines Matching defs: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);
474 static inline int arp_fwd_proxy(struct in_device *in_dev,
483 if (!IN_DEV_PROXY_ARP(in_dev))
485 imi = IN_DEV_MEDIUM_ID(in_dev);
519 static inline int arp_fwd_pvlan(struct in_device *in_dev,
531 if (IN_DEV_PROXY_ARP_PVLAN(in_dev))
704 struct in_device *in_dev = __in_dev_get_rcu(dev);
721 if (!in_dev)
790 (!IN_DEV_ROUTE_LOCALNET(in_dev) && ipv4_is_loopback(tip)))
798 if (sip == tip && IN_DEV_ORCONF(in_dev, DROP_GRATUITOUS_ARP))
833 !arp_ignore(in_dev, sip, tip))
848 dont_send = arp_ignore(in_dev, sip, tip);
849 if (!dont_send && IN_DEV_ARPFILTER(in_dev))
862 } else if (IN_DEV_FORWARD(in_dev)) {
864 (arp_fwd_proxy(in_dev, dev, rt) ||
865 arp_fwd_pvlan(in_dev, dev, rt, sip, tip) ||
874 NEIGH_VAR(in_dev->arp_parms, PROXY_DELAY) == 0) {
881 in_dev->arp_parms, skb);
894 if (n || arp_accept(in_dev, sip)) {
899 if (arp_accept(in_dev, sip)) {
1327 struct in_device *in_dev;
1340 in_dev = __in_dev_get_rtnl(dev);
1341 if (!in_dev)
1344 evict_nocarrier = IN_DEV_ARP_EVICT_NOCARRIER(in_dev);