From owner-freebsd-ports Mon Aug 27 8:40:35 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 77F2637B40D for ; Mon, 27 Aug 2001 08:40:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7RFe4299457; Mon, 27 Aug 2001 08:40:04 -0700 (PDT) (envelope-from gnats) Received: from david.siemens.de (david.siemens.de [192.35.17.14]) by hub.freebsd.org (Postfix) with ESMTP id A20F637B406 for ; Mon, 27 Aug 2001 08:37:38 -0700 (PDT) (envelope-from ust@cert.siemens.de) Received: from mail1.siemens.de (mail1.siemens.de [139.23.33.14]) by david.siemens.de (8.11.0/8.11.0) with ESMTP id f7RFbbc13270 for ; Mon, 27 Aug 2001 17:37:37 +0200 (MET DST) Received: from mars.cert.siemens.de (ust.mchp.siemens.de [139.23.201.17]) by mail1.siemens.de (8.11.6/8.11.6) with ESMTP id f7RFbax01977 for ; Mon, 27 Aug 2001 17:37:36 +0200 (MET DST) Received: from reims.mchp.siemens.de (alaska [139.23.202.134]) by mars.cert.siemens.de (8.11.6/8.11.6/Siemens CERT [ $Revision: 1.17 ]) with ESMTP id f7RFbak78688 for ; Mon, 27 Aug 2001 17:37:36 +0200 (CEST) (envelope-from ust@reims.mchp.siemens.de) Received: (from ust@localhost) by reims.mchp.siemens.de (8.11.6/8.11.6/alaska [ $Revision: 1.8 ]) id f7RFbaU17922; Mon, 27 Aug 2001 17:37:36 +0200 (CEST) (envelope-from ust) Message-Id: <200108271537.f7RFbaU17922@reims.mchp.siemens.de> Date: Mon, 27 Aug 2001 17:37:36 +0200 (CEST) From: Udo Schweigert Reply-To: Udo Schweigert To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/30133: maintainer-update of net/iplog Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30133 >Category: ports >Synopsis: maintainer-update of net/iplog >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Mon Aug 27 08:40:04 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Udo Schweigert >Release: FreeBSD 4.4-RC i386 >Organization: Siemens AG >Environment: System: FreeBSD alaska.cert.siemens.de 4.4-RC FreeBSD 4.4-RC #47: Mon Aug 27 15:57:11 CEST 2001 ust@alaska.cert.siemens.de:/usr/obj/work/src/RELENG_4/sys/alaska i386 FreeBSD illinois.cert.siemens.de 5.0-CURRENT FreeBSD 5.0-CURRENT #50: Tue Aug 21 18:14:03 CEST 2001 ust@illinois.cert.siemens.de:/usr/obj/usr/src/sys/illinois i386 >Description: Update net/iplog to not delay output when used on __FreeBSD_version >= 420001. Before Jan 5, 2001 this port worked without delay. At this time there was a bug-fix in the bpf-kernel-part which made some workarounds in the port not working anymore. These workarounds are there because of a buggy bpf implementation in FreeBSD cf. http://www.tcpdump.org/lists/workers/2001/07/msg00035.html The patch fixes this without breaking the port on 4.2-REL and before. (Problem reported by Mike Jakubik ) >How-To-Repeat: >Fix: diff -ruN --exclude=CVS /usr/ports/net/iplog/Makefile iplog/Makefile --- /usr/ports/net/iplog/Makefile Tue Jan 16 17:44:43 2001 +++ iplog/Makefile Mon Aug 27 17:28:08 2001 @@ -7,12 +7,13 @@ PORTNAME= iplog PORTVERSION= 2.2.3 +PORTREVISION= 1 CATEGORIES= net security MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://misc.ojnk.net/~odin/stuff/ MASTER_SITE_SUBDIR= ojnk -MAINTAINER= ust@cert.siemens.de +MAINTAINER= udo.schweigert@siemens.com USE_GMAKE= yes GNU_CONFIGURE= yes diff -ruN --exclude=CVS /usr/ports/net/iplog/files/patch-ae iplog/files/patch-ae --- /usr/ports/net/iplog/files/patch-ae Thu Jan 1 01:00:00 1970 +++ iplog/files/patch-ae Mon Aug 27 16:39:57 2001 @@ -0,0 +1,24 @@ +--- src/iplog_pcap.c.orig Mon Jan 1 17:02:14 2001 ++++ src/iplog_pcap.c Mon Aug 27 16:38:50 2001 +@@ -211,6 +211,7 @@ + u_char fstring[1024], *temp, errbuf[PCAP_ERRBUF_SIZE]; + struct bpf_program filt; + u_int i = 0; ++ int b = 1; + + pdata->pd = + pcap_open_live(pdata->name, SNAPLEN, opt_enabled(PROMISC), 0, errbuf); +@@ -229,6 +230,13 @@ + pcap_close(pdata->pd); + return (-1); + } ++ ++#ifdef __FreeBSD__ ++#include ++#if __FreeBSD_version >= 420001 ++ ioctl(pcap_fileno(pdata->pd), BIOCIMMEDIATE, &b); ++#endif ++#endif + + #ifdef __linux__ + /* >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message