From owner-freebsd-bugs@FreeBSD.ORG Thu Aug 4 12:10:18 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDD0616A41F for ; Thu, 4 Aug 2005 12:10:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1339F43D48 for ; Thu, 4 Aug 2005 12:10:18 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j74CAHw9077694 for ; Thu, 4 Aug 2005 12:10:17 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j74CAHM7077689; Thu, 4 Aug 2005 12:10:17 GMT (envelope-from gnats) Resent-Date: Thu, 4 Aug 2005 12:10:17 GMT Resent-Message-Id: <200508041210.j74CAHM7077689@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Alexandr Kovalenko Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 696ED16A420 for ; Thu, 4 Aug 2005 12:01:36 +0000 (GMT) (envelope-from never@mile.mirotel.net) Received: from mile.mirotel.net (mile.mirotel.net [194.125.225.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36B8B43D55 for ; Thu, 4 Aug 2005 12:01:34 +0000 (GMT) (envelope-from never@mile.mirotel.net) Received: from mile.mirotel.net (localhost.mirotel.net [127.0.0.1]) by mile.mirotel.net (8.13.3/8.13.3) with ESMTP id j74C1XI0007758 for ; Thu, 4 Aug 2005 15:01:33 +0300 (EEST) (envelope-from never@mile.mirotel.net) Received: (from never@localhost) by mile.mirotel.net (8.13.3/8.13.1/Submit) id j74C1X5U007757; Thu, 4 Aug 2005 15:01:33 +0300 (EEST) (envelope-from never) Message-Id: <200508041201.j74C1X5U007757@mile.mirotel.net> Date: Thu, 4 Aug 2005 15:01:33 +0300 (EEST) From: Alexandr Kovalenko To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: kern/84544: PF_QNAME_SIZE is too small for common use X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Alexandr Kovalenko List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Aug 2005 12:10:18 -0000 >Number: 84544 >Category: kern >Synopsis: PF_QNAME_SIZE is too small for common use >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Aug 04 12:10:17 GMT 2005 >Closed-Date: >Last-Modified: >Originator: Alexandr Kovalenko >Release: FreeBSD 6.0-BETA1 >Organization: Mirotel ISP, http://mirotel.net/ >Environment: System: FreeBSD releng6.xxx.net 6.0-BETA1 FreeBSD 6.0-BETA1 #0: Tue Aug 2 16:08:13 EEST 2005 root@releng6.xxx.net:/usr/obj/usr/src/sys/releng6 i386 >Description: PF_QNAME_SIZE is too small for real-life use - it is only 16 bytes long. >How-To-Repeat: Take a look at /usr/src/sys/contrib/pf/net/pfvar.h (rev.1.12 as for now for HEAD) line 584 >Fix: Increase this variable by applying the following patch: --- pfvar.h.orig Thu Aug 4 14:59:48 2005 +++ pfvar.h Thu Aug 4 15:00:16 2005 @@ -581,7 +581,7 @@ union pf_rule_ptr skip[PF_SKIP_COUNT]; #define PF_RULE_LABEL_SIZE 64 char label[PF_RULE_LABEL_SIZE]; -#define PF_QNAME_SIZE 16 +#define PF_QNAME_SIZE 64 char ifname[IFNAMSIZ]; char qname[PF_QNAME_SIZE]; char pqname[PF_QNAME_SIZE]; >Release-Note: >Audit-Trail: >Unformatted: