From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jan 23 11:20:01 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9F8D9646 for ; Wed, 23 Jan 2013 11:20:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 6DF4EA42 for ; Wed, 23 Jan 2013 11:20:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r0NBK1RR016603 for ; Wed, 23 Jan 2013 11:20:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r0NBK1OO016602; Wed, 23 Jan 2013 11:20:01 GMT (envelope-from gnats) Resent-Date: Wed, 23 Jan 2013 11:20:01 GMT Resent-Message-Id: <201301231120.r0NBK1OO016602@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Cristiano Deana Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 641B35CB for ; Wed, 23 Jan 2013 11:19:06 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id 554A1A37 for ; Wed, 23 Jan 2013 11:19:06 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0NBJ53o079662 for ; Wed, 23 Jan 2013 11:19:05 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.5/8.14.5/Submit) id r0NBJ5C8079661; Wed, 23 Jan 2013 11:19:05 GMT (envelope-from nobody) Message-Id: <201301231119.r0NBJ5C8079661@red.freebsd.org> Date: Wed, 23 Jan 2013 11:19:05 GMT From: Cristiano Deana To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/175527: security/expiretable doesn't work in FreeBSD 9.x X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jan 2013 11:20:01 -0000 >Number: 175527 >Category: ports >Synopsis: security/expiretable doesn't work in FreeBSD 9.x >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jan 23 11:20:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Cristiano Deana >Release: >Organization: >Environment: >Description: Due to changes in pf, expiretable doesn't work in FreeBSD 9.x >How-To-Repeat: Put some ip address in a table, call it "badhosts", then: # /usr/local/sbin/expiretable -v -t 3600 badhosts expiretable: badhosts: Failed to remove address(es).: Invalid argument badhosts: -1 of 9 entries deleted. >Fix: Apply the patch below Patch attached with submission follows: diff -ruN expiretable.orig/Makefile expiretable/Makefile --- expiretable.orig/Makefile 2012-11-17 07:01:03.000000000 +0100 +++ expiretable/Makefile 2013-01-23 12:07:01.000000000 +0100 @@ -7,6 +7,7 @@ PORTNAME= expiretable PORTVERSION= 0.6 +PORTREVISION= 1 CATEGORIES= security MASTER_SITES= http://expiretable.fnord.se/ diff -ruN expiretable.orig/files/patch-expiretable expiretable/files/patch-expiretable --- expiretable.orig/files/patch-expiretable 1970-01-01 01:00:00.000000000 +0100 +++ expiretable/files/patch-expiretable 2013-01-23 12:02:36.000000000 +0100 @@ -0,0 +1,10 @@ +--- expiretable.c.orig 2013-01-23 11:56:08.000000000 +0100 ++++ expiretable.c 2013-01-23 11:56:26.000000000 +0100 +@@ -290,6 +290,7 @@ + for (i = 0; i < astats_count; i++) { + if (astats[i].pfras_tzero <= min_timestamp) { + del_addrs_list[del_addrs_count] = astats[i].pfras_a; ++ del_addrs_list[del_addrs_count].pfra_fback = 0; + del_addrs_count++; + } + } >Release-Note: >Audit-Trail: >Unformatted: