On Tue, 17 Apr 2001, Eric Weigle wrote:

> Ok, I was ignorant of the arp filter functionality in 2.2. I found an old
> (probably painfully out-of-date) posting the patch Andi Kleen was referring to
> in the archive, but I've not used it.
> http://www.uwsg.indiana.edu/hypermail/linux/kernel/0101.2/1198.html

oh heck, why not post a third patch for this problem.  here's the one i
wrote.

-dean

--- linux/net/ipv4/arp.c.badproxy       Mon Feb 12 17:28:48 2001
+++ linux/net/ipv4/arp.c        Tue Feb 13 20:06:37 2001
@@ -737,10 +737,12 @@
                addr_type = rt->rt_type;

                if (addr_type == RTN_LOCAL) {
+                       if ((rt->rt_flags&RTCF_DIRECTSRC) || IN_DEV_PROXY_ARP(in_dev)) 
+{
                        n = neigh_event_ns(&arp_tbl, sha, &sip, dev);
                        if (n) {
                                
arp_send(ARPOP_REPLY,ETH_P_ARP,sip,dev,tip,sha,dev->dev_addr,sha);
                                neigh_release(n);
+                       }
                        }
                        goto out;
                } else if (IN_DEV_FORWARD(in_dev)) {

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to