summaryrefslogtreecommitdiff
path: root/sys/net/pf_ioctl.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2002-12-13 21:48:32 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2002-12-13 21:48:32 +0000
commit74b65e1212e5b69c99fd0132a289ec8a4be28e01 (patch)
tree6049eb29966b971a753a9c31771e5dbc3bbb0aed /sys/net/pf_ioctl.c
parent38dcaab75735dd0c28737aa4bd08b59c9af05a57 (diff)
add pqueue and pqid to pf_rule.
this allows for a second queue on pf_rule. assign packets with tos 0x10 (lowdelay) to this one. if the second queue isn't specified set pqid = qid idea dhartmei@ ok dhartmei@ frantzen@ deraadt@
Diffstat (limited to 'sys/net/pf_ioctl.c')
-rw-r--r--sys/net/pf_ioctl.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/pf_ioctl.c b/sys/net/pf_ioctl.c
index 719631854b8..36d4997ef3c 100644
--- a/sys/net/pf_ioctl.c
+++ b/sys/net/pf_ioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_ioctl.c,v 1.24 2002/12/12 20:24:20 aaron Exp $ */
+/* $OpenBSD: pf_ioctl.c,v 1.25 2002/12/13 21:48:30 henning Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -847,6 +847,10 @@ pfioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p)
break;
}
}
+#ifdef ALTQ
+ if (rule->qid && !rule->pqid)
+ rule->pqid = rule->qid;
+#endif /* ALTQ */
if (pf_dynaddr_setup(&rule->src.addr, rule->af))
error = EINVAL;