From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 03:44:39 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id DB06116A4CF; Thu, 16 Sep 2004 03:44:39 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 13252 invoked by uid 1005); 6 Aug 2003 22:28:35 -0000 Delivered-To: max@vampire.homelinux.org Received: (qmail 13249 invoked from network); 6 Aug 2003 22:28:35 -0000 Received: from moutng.kundenserver.de (212.227.126.171) by p50839001.dip.t-dialin.net with SMTP; 6 Aug 2003 22:28:35 -0000 Received: from [212.227.126.147] (helo=mxng04.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 19kXeV-0005GV-00 for max@vampire.homelinux.org; Thu, 07 Aug 2003 01:25:07 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng04.kundenserver.de with esmtp (Exim 3.35 #1) id 19kXeR-0004Kf-00 for max@love2party.net; Thu, 07 Aug 2003 01:25:03 +0200 Received: from turing (localhost [127.0.0.1])ESMTP id 7348B39544E for ; Wed, 6 Aug 2003 18:29:11 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Wed, 06 Aug 2003 18:29:05 -0500 (EST) Delivered-To: pf4freebsd@freelists.org Received: from mail.fluidhosting.com (ns1.fluidhosting.com [66.150.201.70]) SMTP id E789139402B for ; Wed, 6 Aug 2003 18:29:03 -0500 (EST) Received: (qmail 5921 invoked by uid 1004); 6 Aug 2003 23:24:54 -0000 Received: from 207.188.198.140 ( [207.188.198.140])with HTTP; Wed, 6 Aug 2003 19:24:54 -0400 Message-ID: <1060212294.3f318e46db813@mail.fluidhosting.com> From: pf-r@solarflux.org To: pf4freebsd@freelists.org References: <003501c35b54$c5187240$01000001@max900> <3F301BE0.1040103@BSDsystems.de> <1060129200.3f3049b09d4fa@mail.fluidhosting.com> <1060205566.3f3173fe72132@mail.fluidhosting.com> <00ba01c35c65$04036710$01000001@max900> In-Reply-To: <00ba01c35c65$04036710$01000001@max900> MIME-Version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.1 X-Originating-IP: 207.188.198.140 X-archive-position: 80 X-ecartis-version: Ecartis v1.0.0 Sender: pf4freebsd-bounce@freelists.org Errors-To: pf4freebsd-bounce@freelists.org X-original-sender: pf-r@solarflux.org Precedence: normal X-list: pf4freebsd X-UID: 186 X-Length: 19681 X-Mailman-Approved-At: Thu, 16 Sep 2004 03:55:52 +0000 Subject: [pf4freebsd] Re: pftop X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Reply-To: pf4freebsd@freelists.org List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 16 Sep 2004 03:44:40 -0000 X-Original-Date: Wed, 6 Aug 2003 19:24:54 -0400 X-List-Received-Date: Thu, 16 Sep 2004 03:44:40 -0000 Doesn't build for me... >> pftop-0.3.tar.gz doesn't seem to exist in /usr/ports/distfiles/. >> Attempting to fetch from http://www.eee.metu.edu.tr/~canacar/. Receiving pftop-0.3.tar.gz (12855 bytes): 100% 12855 bytes transferred in 0.4 seconds (29.71 kBps) ===> Extracting for pftop-0.3 >> Checksum OK for pftop-0.3.tar.gz. ===> Patching for pftop-0.3 ===> Applying FreeBSD patches for pftop-0.3 ===> Configuring for pftop-0.3 ===> Building for pftop-0.3 Warning: Object directory not changed from original /pf/pf_freebsd_1.60/contrib/pftop/work/pftop-0.3 cc -O -pipe -mcpu=pentiumpro -Wall -DOS_LEVEL=33 -c pftop.c pftop.c:41:23: net/pfvar.h: No such file or directory pftop.c:195: `PF_RULE_LABEL_SIZE' undeclared here (not in a function) pftop.c:195: initializer element is not constant pftop.c:195: (near initialization for `fields[11].max_width') pftop.c:195: initializer element is not constant pftop.c:195: (near initialization for `fields[11]') pftop.c:196: initializer element is not constant pftop.c:196: (near initialization for `fields[12]') pftop.c:197: initializer element is not constant pftop.c:197: (near initialization for `fields[13]') pftop.c:198: initializer element is not constant pftop.c:198: (near initialization for `fields[14]') pftop.c:199: initializer element is not constant pftop.c:199: (near initialization for `fields[15]') pftop.c:200: initializer element is not constant pftop.c:200: (near initialization for `fields[16]') pftop.c:201: initializer element is not constant pftop.c:201: (near initialization for `fields[17]') pftop.c:202: initializer element is not constant pftop.c:202: (near initialization for `fields[18]') pftop.c:203: initializer element is not constant pftop.c:203: (near initialization for `fields[19]') pftop.c: In function `print_str': pftop.c:394: warning: implicit declaration of function `MIN' pftop.c: In function `sort_size_callback': pftop.c:661: invalid use of undefined type `struct pf_state' pftop.c:661: dereferencing pointer to incomplete type pftop.c:662: invalid use of undefined type `struct pf_state' pftop.c:662: dereferencing pointer to incomplete type pftop.c:663: invalid use of undefined type `struct pf_state' pftop.c:663: dereferencing pointer to incomplete type pftop.c:664: invalid use of undefined type `struct pf_state' pftop.c:664: dereferencing pointer to incomplete type pftop.c: In function `sort_pkt_callback': pftop.c:672: invalid use of undefined type `struct pf_state' pftop.c:672: dereferencing pointer to incomplete type pftop.c:673: invalid use of undefined type `struct pf_state' pftop.c:673: dereferencing pointer to incomplete type pftop.c:674: invalid use of undefined type `struct pf_state' pftop.c:674: dereferencing pointer to incomplete type pftop.c:675: invalid use of undefined type `struct pf_state' pftop.c:675: dereferencing pointer to incomplete type pftop.c: In function `sort_age_callback': pftop.c:683: invalid use of undefined type `struct pf_state' pftop.c:683: dereferencing pointer to incomplete type pftop.c:684: invalid use of undefined type `struct pf_state' pftop.c:684: dereferencing pointer to incomplete type pftop.c: In function `sort_exp_callback': pftop.c:692: invalid use of undefined type `struct pf_state' pftop.c:692: dereferencing pointer to incomplete type pftop.c:693: invalid use of undefined type `struct pf_state' pftop.c:693: dereferencing pointer to incomplete type pftop.c: At top level: pftop.c:699: warning: `struct pf_addr' declared inside parameter list pftop.c:699: warning: its scope is only this definition or declaration, which is probably not what you want pftop.c: In function `compare_addr': pftop.c:703: dereferencing pointer to incomplete type pftop.c:703: dereferencing pointer to incomplete type pftop.c:705: dereferencing pointer to incomplete type pftop.c:705: dereferencing pointer to incomplete type pftop.c:709: dereferencing pointer to incomplete type pftop.c:709: dereferencing pointer to incomplete type pftop.c:711: dereferencing pointer to incomplete type pftop.c:711: dereferencing pointer to incomplete type pftop.c:713: dereferencing pointer to incomplete type pftop.c:713: dereferencing pointer to incomplete type pftop.c:715: dereferencing pointer to incomplete type pftop.c:715: dereferencing pointer to incomplete type pftop.c:717: dereferencing pointer to incomplete type pftop.c:717: dereferencing pointer to incomplete type pftop.c:719: dereferencing pointer to incomplete type pftop.c:719: dereferencing pointer to incomplete type pftop.c:721: dereferencing pointer to incomplete type pftop.c:721: dereferencing pointer to incomplete type pftop.c:723: dereferencing pointer to incomplete type pftop.c:723: dereferencing pointer to incomplete type pftop.c: In function `sort_addr_callback': pftop.c:741: dereferencing pointer to incomplete type pftop.c:743: dereferencing pointer to incomplete type pftop.c:745: dereferencing pointer to incomplete type pftop.c:748: dereferencing pointer to incomplete type pftop.c:749: dereferencing pointer to incomplete type pftop.c:751: dereferencing pointer to incomplete type pftop.c:754: dereferencing pointer to incomplete type pftop.c:755: dereferencing pointer to incomplete type pftop.c:757: dereferencing pointer to incomplete type pftop.c:760: dereferencing pointer to incomplete type pftop.c:760: dereferencing pointer to incomplete type pftop.c:764: dereferencing pointer to incomplete type pftop.c:764: dereferencing pointer to incomplete type pftop.c: In function `sort_sa_callback': pftop.c:771: invalid use of undefined type `struct pf_state' pftop.c:772: invalid use of undefined type `struct pf_state' pftop.c:773: `PF_OUT' undeclared (first use in this function) pftop.c:773: (Each undeclared identifier is reported only once pftop.c:773: for each function it appears in.) pftop.c: In function `sort_da_callback': pftop.c:778: invalid use of undefined type `struct pf_state' pftop.c:779: invalid use of undefined type `struct pf_state' pftop.c:780: `PF_IN' undeclared (first use in this function) pftop.c: In function `sort_port_callback': pftop.c:793: dereferencing pointer to incomplete type pftop.c:795: dereferencing pointer to incomplete type pftop.c:797: dereferencing pointer to incomplete type pftop.c:800: dereferencing pointer to incomplete type pftop.c:801: dereferencing pointer to incomplete type pftop.c:803: dereferencing pointer to incomplete type pftop.c:806: dereferencing pointer to incomplete type pftop.c:807: dereferencing pointer to incomplete type pftop.c:809: dereferencing pointer to incomplete type pftop.c:812: dereferencing pointer to incomplete type pftop.c:812: dereferencing pointer to incomplete type pftop.c:814: dereferencing pointer to incomplete type pftop.c:814: dereferencing pointer to incomplete type pftop.c:817: dereferencing pointer to incomplete type pftop.c:817: dereferencing pointer to incomplete type pftop.c: In function `sort_sp_callback': pftop.c:825: invalid use of undefined type `struct pf_state' pftop.c:826: invalid use of undefined type `struct pf_state' pftop.c:827: `PF_OUT' undeclared (first use in this function) pftop.c: In function `sort_dp_callback': pftop.c:833: invalid use of undefined type `struct pf_state' pftop.c:834: invalid use of undefined type `struct pf_state' pftop.c:835: `PF_IN' undeclared (first use in this function) pftop.c: In function `alloc_buf': pftop.c:921: sizeof applied to an incomplete type pftop.c: In function `read_states': pftop.c:932: storage size of `ps' isn't known pftop.c:936: sizeof applied to an incomplete type pftop.c:941: `DIOCGETSTATES' undeclared (first use in this function) pftop.c:944: sizeof applied to an incomplete type pftop.c:932: warning: unused variable `ps' pftop.c: At top level: pftop.c:960: warning: `struct pf_addr' declared inside parameter list pftop.c: In function `unmask': pftop.c:969: dereferencing pointer to incomplete type pftop.c:974: dereferencing pointer to incomplete type pftop.c: At top level: pftop.c:984: warning: `struct pf_status' declared inside parameter list pftop.c: In function `print_header': pftop.c:999: dereferencing pointer to incomplete type pftop.c: At top level: pftop.c:1049: warning: `struct pf_addr' declared inside parameter list pftop.c: In function `tb_print_addr': pftop.c:1058: warning: implicit declaration of function `PF_AZERO' pftop.c:1059: warning: passing arg 1 of `unmask' from incompatible pointer type pftop.c: At top level: pftop.c:1064: warning: `struct pf_state_host' declared inside parameter list pftop.c: In function `print_fld_host': pftop.c:1066: dereferencing pointer to incomplete type pftop.c:1077: dereferencing pointer to incomplete type pftop.c: In function `print_fld_state': pftop.c:1161: `PFUDPS_NSTATES' undeclared (first use in this function) pftop.c:1163: `PFUDPS_NAMES' undeclared (first use in this function) pftop.c:1165: `PFOTHERS_NSTATES' undeclared (first use in this function) pftop.c:1168: `PFOTHERS_NAMES' undeclared (first use in this function) pftop.c: In function `print_state': pftop.c:1253: dereferencing pointer to incomplete type pftop.c:1253: `PF_OUT' undeclared (first use in this function) pftop.c:1254: dereferencing pointer to incomplete type pftop.c:1255: dereferencing pointer to incomplete type pftop.c:1257: dereferencing pointer to incomplete type pftop.c:1258: dereferencing pointer to incomplete type pftop.c:1261: dereferencing pointer to incomplete type pftop.c:1266: dereferencing pointer to incomplete type pftop.c:1268: dereferencing pointer to incomplete type pftop.c:1269: dereferencing pointer to incomplete type pftop.c:1269: dereferencing pointer to incomplete type pftop.c:1270: dereferencing pointer to incomplete type pftop.c:1270: dereferencing pointer to incomplete type pftop.c:1272: dereferencing pointer to incomplete type pftop.c:1272: dereferencing pointer to incomplete type pftop.c:1273: dereferencing pointer to incomplete type pftop.c:1273: dereferencing pointer to incomplete type pftop.c:1276: warning: implicit declaration of function `PF_ANEQ' pftop.c:1276: dereferencing pointer to incomplete type pftop.c:1276: dereferencing pointer to incomplete type pftop.c:1276: dereferencing pointer to incomplete type pftop.c:1277: dereferencing pointer to incomplete type pftop.c:1277: dereferencing pointer to incomplete type pftop.c:1278: dereferencing pointer to incomplete type pftop.c:1278: dereferencing pointer to incomplete type pftop.c:1281: dereferencing pointer to incomplete type pftop.c:1286: dereferencing pointer to incomplete type pftop.c:1286: dereferencing pointer to incomplete type pftop.c:1286: dereferencing pointer to incomplete type pftop.c:1287: dereferencing pointer to incomplete type pftop.c:1288: dereferencing pointer to incomplete type pftop.c:1289: dereferencing pointer to incomplete type pftop.c:1289: dereferencing pointer to incomplete type pftop.c:1290: dereferencing pointer to incomplete type pftop.c:1290: dereferencing pointer to incomplete type pftop.c:1292: dereferencing pointer to incomplete type pftop.c: In function `print_states': pftop.c:1304: invalid use of undefined type `struct pf_state' pftop.c: In function `disp_update': pftop.c:1313: storage size of `status' isn't known pftop.c:1323: `DIOCGETSTATUS' undeclared (first use in this function) pftop.c:1313: warning: unused variable `status' pftop.c: In function `read_rules': pftop.c:1348: storage size of `pr' isn't known pftop.c:1351: `DIOCGETRULES' undeclared (first use in this function) pftop.c:1361: sizeof applied to an incomplete type pftop.c:1366: sizeof applied to an incomplete type pftop.c:1374: `DIOCGETRULE' undeclared (first use in this function) pftop.c:1378: invalid use of undefined type `struct pf_rule' pftop.c:1378: dereferencing pointer to incomplete type pftop.c:1348: warning: unused variable `pr' pftop.c: At top level: pftop.c:1386: warning: `struct pf_addr' declared inside parameter list pftop.c:1386: warning: `struct pf_addr_wrap' declared inside parameter list pftop.c: In function `tb_print_addrw': pftop.c:1388: dereferencing pointer to incomplete type pftop.c:1389: dereferencing pointer to incomplete type pftop.c:1391: dereferencing pointer to incomplete type pftop.c:1391: warning: passing arg 2 of `tb_print_addr' from incompatible pointer type pftop.c: In function `tb_print_op': pftop.c:1398: `PF_OP_IRG' undeclared (first use in this function) pftop.c:1400: `PF_OP_XRG' undeclared (first use in this function) pftop.c:1402: `PF_OP_EQ' undeclared (first use in this function) pftop.c:1404: `PF_OP_NE' undeclared (first use in this function) pftop.c:1406: `PF_OP_LT' undeclared (first use in this function) pftop.c:1408: `PF_OP_LE' undeclared (first use in this function) pftop.c:1410: `PF_OP_GT' undeclared (first use in this function) pftop.c:1412: `PF_OP_GE' undeclared (first use in this function) pftop.c: In function `tb_print_port': pftop.c:1427: `PF_OP_EQ' undeclared (first use in this function) pftop.c:1427: `PF_OP_NE' undeclared (first use in this function) pftop.c: At top level: pftop.c:1435: warning: `struct pf_rule_addr' declared inside parameter list pftop.c: In function `tb_print_fromto': pftop.c:1439: dereferencing pointer to incomplete type pftop.c:1440: dereferencing pointer to incomplete type pftop.c:1446: dereferencing pointer to incomplete type pftop.c:1447: dereferencing pointer to incomplete type pftop.c:1448: dereferencing pointer to incomplete type pftop.c:1448: dereferencing pointer to incomplete type pftop.c:1457: dereferencing pointer to incomplete type pftop.c:1464: dereferencing pointer to incomplete type pftop.c:1467: dereferencing pointer to incomplete type pftop.c:1470: dereferencing pointer to incomplete type pftop.c:1470: dereferencing pointer to incomplete type pftop.c:1476: dereferencing pointer to incomplete type pftop.c:1477: dereferencing pointer to incomplete type pftop.c:1477: dereferencing pointer to incomplete type pftop.c:1478: dereferencing pointer to incomplete type pftop.c:1487: dereferencing pointer to incomplete type pftop.c:1494: dereferencing pointer to incomplete type pftop.c:1497: dereferencing pointer to incomplete type pftop.c:1500: dereferencing pointer to incomplete type pftop.c:1500: dereferencing pointer to incomplete type pftop.c:1506: dereferencing pointer to incomplete type pftop.c:1507: dereferencing pointer to incomplete type pftop.c:1507: dereferencing pointer to incomplete type pftop.c:1508: dereferencing pointer to incomplete type pftop.c: In function `print_rule': pftop.c:1519: dereferencing pointer to incomplete type pftop.c:1522: dereferencing pointer to incomplete type pftop.c:1524: dereferencing pointer to incomplete type pftop.c:1525: dereferencing pointer to incomplete type pftop.c:1526: dereferencing pointer to incomplete type pftop.c:1527: dereferencing pointer to incomplete type pftop.c:1528: dereferencing pointer to incomplete type pftop.c:1531: dereferencing pointer to incomplete type pftop.c:1531: `PF_STATE_NORMAL' undeclared (first use in this function) pftop.c:1533: dereferencing pointer to incomplete type pftop.c:1533: `PF_STATE_MODULATE' undeclared (first use in this function) pftop.c:1536: dereferencing pointer to incomplete type pftop.c:1538: dereferencing pointer to incomplete type pftop.c:1541: dereferencing pointer to incomplete type pftop.c:1541: `PF_PASS' undeclared (first use in this function) pftop.c:1543: dereferencing pointer to incomplete type pftop.c:1543: `PF_DROP' undeclared (first use in this function) pftop.c:1547: dereferencing pointer to incomplete type pftop.c:1548: dereferencing pointer to incomplete type pftop.c:1553: dereferencing pointer to incomplete type pftop.c:1556: dereferencing pointer to incomplete type pftop.c:1559: dereferencing pointer to incomplete type pftop.c:1562: dereferencing pointer to incomplete type pftop.c:1567: dereferencing pointer to incomplete type pftop.c:1567: dereferencing pointer to incomplete type pftop.c:1567: dereferencing pointer to incomplete type pftop.c:1567: dereferencing pointer to incomplete type pftop.c: In function `print_rules': pftop.c:1579: invalid use of undefined type `struct pf_rule' pftop.c: In function `main': pftop.c:1910: storage size of `status' isn't known pftop.c:1998: `DIOCGETSTATUS' undeclared (first use in this function) pftop.c:1910: warning: unused variable `status' *** Error code 1 Stop in /pf/pf_freebsd_1.60/contrib/pftop/work/pftop-0.3. *** Error code 1 Stop in /pf/pf_freebsd_1.60/contrib/pftop. Quoting Max Laier : > See pf_freebsd_1.60/contrib/pftop > Things in contrib can be build as any other port from /usr/port > In most cases "make install" will do the trick. And pkg_delete/pkg_info can > be used on these applications. > > For pftop please note, that is has some issues as the official pftop only > supports pf as of OpenBSD 3.3