Ganbold wrote:
Hi,

Sorry for sending this third time (2 to freebsd-ipfw, 1 to freebsd-net).

I'm trying to make small changes in ipfw2.c code (RELENG_7), but make fails with following error:

v02# make
cc -O2 -fno-strict-aliasing -pipe  -Wno-pointer-sign -c
/usr/src/sbin/ipfw/ipfw2.c
/usr/src/sbin/ipfw/ipfw2.c: In function 'table_handler':
/usr/src/sbin/ipfw/ipfw2.c:5941: error: 'IPFW_TABLES_MAX' undeclared
(first use in this function)
/usr/src/sbin/ipfw/ipfw2.c:5941: error: (Each undeclared identifier is
reported only once
/usr/src/sbin/ipfw/ipfw2.c:5941: error: for each function it appears in.)
*** Error code 1

IPFW_TABLES_MAX seems like defined in netinet/ip_fw.h, which is included
in ipfw2.c:


IPFW_TABLES_MAX protected by _KERNEL macro. This is why you get
an error.

--
WBR, Andrey V. Elsukov
_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to