Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Sep 2008 13:12:17 +0400
From:      "Andrey V. Elsukov" <bu7cher@yandex.ru>
To:        Ganbold <ganbold@micom.mng.net>
Cc:        "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>, Gleb Smirnoff <glebius@FreeBSD.org>, rizzo@iet.unipi.it, Julian Elischer <julian@elischer.org>
Subject:   Re: IPFW_TABLES_MAX in src/sbin/ipfw/ipfw2.c
Message-ID:  <48BBB1F1.2090302@yandex.ru>
In-Reply-To: <48BB6B95.4010103@micom.mng.net>
References:  <48BB6B95.4010103@micom.mng.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48BBB1F1.2090302>