lkml.org 
[lkml]   [1997]   [Jan]   [18]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
DateSat, 18 Jan 1997 12:25:37 +0000
FromKlaus Kudielka <>
Subjectarp problems: solution
Ok, I have found why I can't add ARP entries with net-tools-1.32-alpha
on 2.1.20. It's a new check in net/ipv4/arp.c; the user also needs to
specify ATF_COM if he specifies ATF_PERM. I wonder why nobody else did
notice this.

The fix of net-tools-1.32-alpha/arp.c is simple:

--- arp.c.ORIG  Sat Jan 18 09:47:23 1997
+++ arp.c       Sat Jan 18 09:48:14 1997
@@ -226,7 +226,7 @@
   }
   
   /* Check out any modifiers. */
-  flags = ATF_PERM;
+  flags = ATF_PERM|ATF_COM;
   while (*args != NULL) {
        if (! strcmp(*args, "temp")) flags &= ~ATF_PERM;
        if (! strcmp(*args, "pub")) flags |= ATF_PUBL;
--
Klaus Kudielka OE1KIB        Peter Jordanstr. 165, A-1180 Wien, AUSTRIA
oe1kib@oe1xtu.ampr.org                  http://oe1xtu.ampr.org/~oe1kib/
OE1KIB@OE1XIB.AUT.EU            http://asterix.nt.tuwien.ac.at/~oe1kib/

\
 
 \ /
  Last update: 2005-03-22 12:38    [from the cache]
©2003-2008