Date: Sun, 26 Apr 1998 12:39:38 -0700 (PDT) From: Julian Elischer <julian@whistle.com> To: Alexander Matey <lx@hosix.ntu-kpi.kiev.ua> Cc: freebsd-hackers@FREEBSD.ORG Subject: Re: Static ARP (IFF_NOARP usage in ethernet interfaces) Message-ID: <Pine.BSF.3.95.980426123550.21604C-100000@current1.whistle.com> In-Reply-To: <19980426183333.38119@hosix.ntu-kpi.kiev.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
I see no technical reason against this but I'm curious why one would want to do this.. I can't imagine a single reason for not wanting to do arp.. On Sun, 26 Apr 1998, Alexander Matey wrote: > Hi! > > I'd like to discuss the usage of IFF_NOARP flag in if_ether.c -- the > place where ethernet arp is implemented. > One time I've tried to make arp work in static mode on an ethernet > interface. Static arp here should be understood as a mode where all who-has > requests from outside are ignored and similar requests from our host are not > broadcasted. However you're still able to manage arp table manually by the > help of arp(8). This was what I needed. > But all my tries to disable arp requests/replies on a particular > ethernet interface have failed (ifconfig xxx -arp). IFF_NOARP flag seemed > to be ignored, so I decided to look through kernel sources (FreeBSD 2.2.6- > RELEASE). I've realized that the only place where IFF_NOARP have been used > was netatalk/aarp.c -- appletalk arp implementation. > Therefore I've done a patch for if_ether.c which takes into account > the state of IFF_NOARP flag and completely disables arp requests and replies > on a particular ethernet interface. If kernel is compiled with -DARP_HACK it > changes the behavior of -arp option to answering who-has queries but leaves > broadcasting of these queries from our side disabled. > Is it possible to commit these changes to -stable (maybe -current) > branches ? I think it would be of use to people. > Any suggestions will be appreciated. > > Attached. > > bye, lx. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.980426123550.21604C-100000>