IPFW_TABLES_MAX in src/sbin/ipfw/ipfw2.c

Andrey V. Elsukov bu7cher at yandex.ru
Mon Sep 1 09:29:41 UTC 2008


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


More information about the freebsd-net mailing list