Arpreply target

Ivan Vladimirov <[email protected]> Thu, 22 Mar 2007 15:39:28 +0200
Newsgroups gmane.linux.network.bridge.ebtables.user
Message-ID <[email protected]>
Hello
I have made, a patch for ebtables arpreply.c which solves problem with
arpreply in situation bridge with multiple vlans.
this is a simple check for arpreply not to answer when source and
destination IP address is the same  which happens when client machine
sends arp request to check for ip conflict .

###########################################################
--- ebt_arpreply.c      2007-02-20 08:34:32.000000000 +0200
+++ ebt_arpreply.new    2007-03-22 15:38:00.000000000 +0200
@@ -49,7 +49,10 @@
                                   sizeof(_dip), &_dip);
        if (diptr == NULL)
                return EBT_DROP;
-
+
+        if (*diptr == *siptr)
+                return EBT_DROP;
+
        arp_send(ARPOP_REPLY, ETH_P_ARP, *siptr, (struct net_device *)in,
                 *diptr, shp, info->mac, shp);
################################################################





-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV