Re: vlan broken ?

From: Nickolay Dudorov <nnd_at_mail.nsk.ru>
Date: Mon, 5 May 2003 15:48:09 +0700 (NOVST)
In article <20030502120140.GK93151_at_droso.net> you wrote:
> [-- text/plain, encoding quoted-printable, 20 lines --]
> 
> sh /usr/src/sys/conf/newvers.sh VALE
> cc -c -O -pipe -mcpu=pentiumpro -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I-  -I.
> -I/usr/src/sys -I/usr/src/sys/dev -I/usr/src/sys/contrib/dev/acpica
> -I/usr/src/sys/contrib/ipfilter -D_KERNEL -include opt_global.h
> -fno-common  -mno-align-long-strings -mpreferred-stack-boundary=2
> -ffreestanding -Werror  vers.c
> linking kernel
> if_vlan.o: In function `vlan_modevent':
> if_vlan.o(.text+0x1d0): undefined reference to `vlan_input_p'
> if_vlan.o(.text+0x1f4): undefined reference to `vlan_input_p'
> *** Error code 1

	This is the result of the following change in the if_ethersubr.c:
(with rev. 1.145 of this file all is OK):

Index: if_ethersubr.c
===================================================================
RCS file: /home/CVS/src/sys/net/if_ethersubr.c,v
retrieving revision 1.145
retrieving revision 1.146
diff -b -u -r1.145 -r1.146
--- if_ethersubr.c	23 Apr 2003 23:45:57 -0000	1.145
+++ if_ethersubr.c	30 Apr 2003 12:57:40 -0000	1.146
_at__at_ -31,7 +31,7 _at__at_
  * SUCH DAMAGE.
  *
  *	_at_(#)if_ethersubr.c	8.1 (Berkeley) 6/10/93
- * $FreeBSD: src/sys/net/if_ethersubr.c,v 1.145 2003/04/23 23:45:57 archie Exp $
+ * $FreeBSD: src/sys/net/if_ethersubr.c,v 1.146 2003/04/30 12:57:40 markm Exp $
  */
 
 #include "opt_atalk.h"
_at__at_ -102,7 +102,7 _at__at_
 void	(*ng_ether_attach_p)(struct ifnet *ifp);
 void	(*ng_ether_detach_p)(struct ifnet *ifp);
 
-void	(*vlan_input_p)(struct ifnet *, struct mbuf *);
+static void	(*vlan_input_p)(struct ifnet *, struct mbuf *);
 
 /* bridge support */
 int do_bridge;
Received on Sun May 04 2003 - 23:47:48 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:06 UTC