Lines Matching refs:sip
396 static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip)
405 sip = 0;
410 * and is in same subnet as sip
415 sip = 0;
429 return !inet_confirm_addr(net, in_dev, sip, tip, scope);
432 static int arp_accept(struct in_device *in_dev, __be32 sip)
442 case 2: /* Create a neighbor in the arp table only if sip
446 return !!inet_confirm_addr(net, in_dev, sip, 0, scope);
452 static int arp_filter(__be32 sip, __be32 tip, struct net_device *dev)
459 rt = ip_route_output(net, sip, tip, 0, l3mdev_master_ifindex_rcu(dev));
520 __be32 sip, __be32 tip)
527 if (sip == tip)
670 __be32 sip, __be32 tip,
673 bool is_garp = tip == sip;
687 *addr_type = inet_addr_type_dev_table(net, dev, sip);
707 __be32 sip, tip;
770 memcpy(&sip, arp_ptr, 4);
795 if (sip == tip && IN_DEV_ORCONF(in_dev, DROP_GRATUITOUS_ARP))
827 if (sip == 0) {
830 !arp_ignore(in_dev, sip, tip))
831 arp_send_dst(ARPOP_REPLY, ETH_P_ARP, sip, dev, tip,
837 ip_route_input_noref(skb, tip, sip, 0, dev) == 0) {
845 dont_send = arp_ignore(in_dev, sip, tip);
847 dont_send = arp_filter(sip, tip, dev);
849 n = neigh_event_ns(&arp_tbl, sha, &sip, dev);
852 sip, dev, tip, sha,
862 arp_fwd_pvlan(in_dev, dev, rt, sip, tip) ||
865 n = neigh_event_ns(&arp_tbl, sha, &sip, dev);
873 sip, dev, tip, sha,
888 n = __neigh_lookup(&arp_tbl, &sip, dev, 0);
891 if (n || arp_accept(in_dev, sip)) {
893 sip, tip, sha, tha);
896 if (arp_accept(in_dev, sip)) {
907 inet_addr_type_dev_table(net, dev, sip) ==
909 n = __neigh_lookup(&arp_tbl, &sip, dev, 1);