Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Aug 2001 17:37:36 +0200 (CEST)
From:      Udo Schweigert <ust@cert.siemens.de>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/30133: maintainer-update of net/iplog
Message-ID:  <200108271537.f7RFbaU17922@reims.mchp.siemens.de>

next in thread | raw e-mail | index | archive | help

>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 <mikej@trigger.net>)

	
>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 <osreldate.h>
++#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




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