From owner-freebsd-net@FreeBSD.ORG Mon Sep 1 09:29:41 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B05D8106567C; Mon, 1 Sep 2008 09:29:41 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forwards4.yandex.ru (forwards4.yandex.ru [77.88.32.20]) by mx1.freebsd.org (Postfix) with ESMTP id 620468FC1A; Mon, 1 Sep 2008 09:29:41 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from smtp14.yandex.ru (smtp14.yandex.ru [77.88.32.84]) by forwards4.yandex.ru (Postfix) with ESMTP id 0E06D4C58A3; Mon, 1 Sep 2008 13:12:29 +0400 (MSD) Received: from ns.kirov.so-cdu.ru ([77.72.136.145]:13550 "EHLO [127.0.0.1]" smtp-auth: "bu7cher" TLS-CIPHER: "DHE-RSA-AES256-SHA keybits 256/256 version TLSv1/SSLv3" TLS-PEER-CN1: ) by mail.yandex.ru with ESMTP id S5177506AbYIAJMU (ORCPT + 4 others); Mon, 1 Sep 2008 13:12:20 +0400 X-Yandex-Spam: 1 X-Yandex-Front: smtp14 X-Yandex-TimeMark: 1220260340 X-MsgDayCount: 5 X-Comment: RFC 2476 MSA function at smtp14.yandex.ru logged sender identity as: bu7cher Message-ID: <48BBB1F1.2090302@yandex.ru> Date: Mon, 01 Sep 2008 13:12:17 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Ganbold References: <48BB6B95.4010103@micom.mng.net> In-Reply-To: <48BB6B95.4010103@micom.mng.net> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: "freebsd-net@freebsd.org" , Gleb Smirnoff , rizzo@iet.unipi.it, Julian Elischer Subject: Re: IPFW_TABLES_MAX in src/sbin/ipfw/ipfw2.c X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2008 09:29:41 -0000 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