kern/84544: PF_QNAME_SIZE is too small for common use

Alexandr Kovalenko never at nevermind.kiev.ua
Thu Aug 4 12:10:18 GMT 2005


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


More information about the freebsd-bugs mailing list