On Sat, Mar 23, 2002 at 08:50:19PM +0300, Maxim Konovalov wrote:
> 
> Hello,
> 
> After this commit 'device ether' is mandatory if ever there is no any
> ethernet or token-ring devices.

        The same problem in STABLE...
from revision 1.85.2.15 of net/if.c:

#ifdef INET
      /*
                 * Also send gratuitous ARPs to notify other nodes about
                 * the address change.
                 */
                TAILQ_FOREACH(ifa, &ifp->if_addrhead, ifa_link) {
                   if (ifa->ifa_addr != NULL &&
                   ifa->ifa_addr->sa_family == AF_INET)
                   arp_ifinit((struct arpcom *)ifp, ifa);
       }
#endif

        arp_ifinit defined in netinet/if_ether.c
        This makes 'device ether' mandatory for 'options INET',
so kernel with 'options INET', but without 'device ether'
failed to built:

sh ../../conf/newvers.sh DIALUP
cc -c -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions
-ansi  -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter
-D_KERNEL -include opt_global.h -elf -mpreferred-stack-boundary=2  vers.c
linking kernel
if.o: In function `if_setlladdr':
if.o(.text+0x1ac8): undefined reference to `arp_ifinit'
*** Error code 1

Stop in /usr/src/sys/compile/DIALUP.
bash-2.05# uname -a
FreeBSD core.zp.ua 4.5-STABLE FreeBSD 4.5-STABLE #2: Thu Mar 14 20:31:11 EET 2002
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/core  i386

(yes, my computer@home doesn't have any arp-capable devices,
and connects with Internet via dialup)

> 
> | luigi       2002/02/18 14:50:13 PST
> |
> |  Modified files:
> |    sys/net              if.c
> |  Log:
> |  When the local link address is changed, send out gratuitous ARPs
> |  to notify other nodes about the address change. Otherwise, they
> |  might try and keep using the old address until their arp table
> |  entry times out and the address is refreshed.
> |
> |  Maybe this ought to be done for INET6 addresses as well but i have
> |  no idea how to do it. It should be pretty straightforward though.
> |
> |  MFC-after: 10 days
> |
> |  Revision  Changes    Path
> |  1.128     +11 -0     src/sys/net/if.c
> 
> -- 
> Maxim Konovalov, MAcomnet, Internet-Intranet Dept., system engineer
> phone: +7 (095) 796-9079, mailto:[EMAIL PROTECTED]
> 
> 
> To Unsubscribe: send mail to [EMAIL PROTECTED]
> with "unsubscribe freebsd-current" in the body of the message

-- 
        With best wishes
        Oleg V. Nauman NO37-RIPE

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to