Linux-Hams archive - June 1997: Re: Arp problem

Re: Arp problem

Hans-Joachim (wlsmjzxk@dreambg.com)
Thu, 5 Jun 1997 06:21:43 +0200


In article <wbow.rhln@roskapostia.tunk.net> you wrote:

> On Wed, 4 Jun 1997, Hans-Joachim wrote:

> > Hi folks,
> >
> > since 2.1.xx kernels, you need to have the ATF_COM flag to be set in
> > order to add some arp entries.
> >
> > So get the net-tools sources and add the ATF_COM flag in the arp.c
> > and everything works fine.

> Can anyone help me with the correct syntax on this. I have not had
> any luck with this so far.

Here we go. It's the patch against 1.69 of arp.c
*** arp.c.orig Fri Feb 14 15:29:53 1997
--- arp.c Thu Jun 5 06:14:34 1997
***************
*** 225,231 ****
}

/* Check out any modifiers. */
! flags = ATF_PERM;
while (*args != NULL) {
if (! strcmp(*args, "temp")) flags &= ~ATF_PERM;
if (! strcmp(*args, "pub")) flags |= ATF_PUBL;
--- 225,231 ----
}

/* Check out any modifiers. */
! flags = ATF_PERM | ATF_COM;
while (*args != NULL) {
if (! strcmp(*args, "temp")) flags &= ~ATF_PERM;
if (! strcmp(*args, "pub")) flags |= ATF_PUBL;

VY 73 de Hans-Joachim