[tulip] Error building Tulip driver on Mandrake 9 : 'tulip.c:3249: `NETIF_MSG_RXFILTER' undeclared (first use in this function)'

Donald Becker becker@scyld.com
Wed Nov 27 16:00:11 2002

On Wed, 27 Nov 2002, Peter McClure wrote:

> More debugging of the source code.  It never occurred to me (until now) that
> there might be #if in the header files.  Dumb.
> >From kern_compat.h
> OK.  So Mandrake claim to have NETIF_MSG and do - except for the one that we
> need.  I added
> enum {
>         NETIF_MSG_RXFILTER      = 0x10000
> };

Version 1.13 and later of kern_compat.h has the following to work around
this problem:

#if !defined(NETIF_MSG_MAX) || NETIF_MSG_MAX < 0x8000
#define NETIF_MSG_MISC 0x8000
#if !defined(NETIF_MSG_MAX) || NETIF_MSG_MAX < 0x10000
#define NETIF_MSG_RXFILTER 0x10000

> I then tried to rebuild the module and I get :-
> [root@lin133 netdrivers-3.1]# make tulip.o
> gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -I/lib/modules/2.4.1
> 9-16mdksecure/build/include -pipe -fno-strength-reduce -DMODVERSIONS   -c -o
> tulip.o tulip.c
> tulip.c: In function `set_rx_mode':
> tulip.c:3291: warning: operation on `setup_frm' may be undefined

These are bogus warnings from the compiler.
We are filling with duplicate values and don't care which order the
assignment is done.  Still, the v0.95g version of tulip.c changes the
code to avoid the warning.

Both updates are now at


Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Scyld Beowulf cluster system
Annapolis MD 21403			410-990-9993