Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 4 Aug 2005 15:01:33 +0300 (EEST)
From:      Alexandr Kovalenko <never@nevermind.kiev.ua>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   kern/84544: PF_QNAME_SIZE is too small for common use
Message-ID:  <200508041201.j74C1X5U007757@mile.mirotel.net>
Resent-Message-ID: <200508041210.j74CAHM7077689@freefall.freebsd.org>

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

>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:



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