kern/84544: PF_QNAME_SIZE is too small for common use

Alexandr Kovalenko never at
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
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 04 12:10:17 GMT 2005
>Originator:     Alexandr Kovalenko
>Release:        FreeBSD 6.0-BETA1
Mirotel ISP,
System: FreeBSD 6.0-BETA1 FreeBSD 6.0-BETA1 #0: Tue Aug  2 16:08:13 EEST 2005     root at  i386

	PF_QNAME_SIZE is too small for real-life use - it is only 16 bytes long.
	Take a look at
	/usr/src/sys/contrib/pf/net/pfvar.h (rev.1.12 as for now for HEAD)
	line 584 
	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];

More information about the freebsd-bugs mailing list