summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl_altq.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-20 00:18:01 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2013-03-20 00:18:01 +0000
commit9b7efaeb39800f0ac9bd694f6d5ed796b9c62f57 (patch)
treebd03a2e529ed555ca7b1563dd5582ad5d76675c3 /sbin/pfctl/pfctl_altq.c
parentc5b7227155549507a3b6f6b8ffd596a854d4278f (diff)
MCLBYTES does not belong in here.
Diffstat (limited to 'sbin/pfctl/pfctl_altq.c')
-rw-r--r--sbin/pfctl/pfctl_altq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_altq.c b/sbin/pfctl/pfctl_altq.c
index 68d9e7e436a..ce3b860de50 100644
--- a/sbin/pfctl/pfctl_altq.c
+++ b/sbin/pfctl/pfctl_altq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl_altq.c,v 1.98 2012/05/02 07:45:50 henning Exp $ */
+/* $OpenBSD: pfctl_altq.c,v 1.99 2013/03/20 00:18:00 deraadt Exp $ */
/*
* Copyright (c) 2002
@@ -405,8 +405,8 @@ eval_pfqueue_cbq(struct pfctl *pf, struct pf_altq *pa)
if (opts->pktsize == 0) { /* use default */
opts->pktsize = ifmtu;
- if (opts->pktsize > MCLBYTES) /* do what TCP does */
- opts->pktsize &= ~MCLBYTES;
+ if (opts->pktsize > 2048) /* do what TCP does */
+ opts->pktsize &= ~2048;
} else if (opts->pktsize > ifmtu)
opts->pktsize = ifmtu;
if (opts->maxpktsize == 0) /* use default */