Lines Matching refs:sip

396 static int arp_ignore(struct in_device *in_dev, __be32 sip, __be32 tip)  in arp_ignore()  argument
405 sip = 0; in arp_ignore()
415 sip = 0; in arp_ignore()
429 return !inet_confirm_addr(net, in_dev, sip, tip, scope); in arp_ignore()
432 static int arp_accept(struct in_device *in_dev, __be32 sip) in arp_accept() argument
446 return !!inet_confirm_addr(net, in_dev, sip, 0, scope); in arp_accept()
452 static int arp_filter(__be32 sip, __be32 tip, struct net_device *dev) in arp_filter() argument
459 rt = ip_route_output(net, sip, tip, 0, l3mdev_master_ifindex_rcu(dev), in arp_filter()
521 __be32 sip, __be32 tip) in arp_fwd_pvlan() argument
528 if (sip == tip) in arp_fwd_pvlan()
673 __be32 sip, __be32 tip, in arp_is_garp() argument
676 bool is_garp = tip == sip; in arp_is_garp()
690 *addr_type = inet_addr_type_dev_table(net, dev, sip); in arp_is_garp()
710 __be32 sip, tip; in arp_process() local
773 memcpy(&sip, arp_ptr, 4); in arp_process()
798 if (sip == tip && IN_DEV_ORCONF(in_dev, DROP_GRATUITOUS_ARP)) in arp_process()
830 if (sip == 0) { in arp_process()
833 !arp_ignore(in_dev, sip, tip)) in arp_process()
834 arp_send_dst(ARPOP_REPLY, ETH_P_ARP, sip, dev, tip, in arp_process()
840 ip_route_input_noref(skb, tip, sip, 0, dev) == 0) { in arp_process()
848 dont_send = arp_ignore(in_dev, sip, tip); in arp_process()
850 dont_send = arp_filter(sip, tip, dev); in arp_process()
852 n = neigh_event_ns(&arp_tbl, sha, &sip, dev); in arp_process()
855 sip, dev, tip, sha, in arp_process()
865 arp_fwd_pvlan(in_dev, dev, rt, sip, tip) || in arp_process()
868 n = neigh_event_ns(&arp_tbl, sha, &sip, dev); in arp_process()
876 sip, dev, tip, sha, in arp_process()
891 n = __neigh_lookup(&arp_tbl, &sip, dev, 0); in arp_process()
894 if (n || arp_accept(in_dev, sip)) { in arp_process()
896 sip, tip, sha, tha); in arp_process()
899 if (arp_accept(in_dev, sip)) { in arp_process()
910 inet_addr_type_dev_table(net, dev, sip) == in arp_process()
912 n = __neigh_lookup(&arp_tbl, &sip, dev, 1); in arp_process()