diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-12-13 21:48:32 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-12-13 21:48:32 +0000 |
commit | 74b65e1212e5b69c99fd0132a289ec8a4be28e01 (patch) | |
tree | 6049eb29966b971a753a9c31771e5dbc3bbb0aed /sys/net/pf.c | |
parent | 38dcaab75735dd0c28737aa4bd08b59c9af05a57 (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.c')
-rw-r--r-- | sys/net/pf.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index f06258fd956..210f7109704 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.269 2002/12/06 00:47:32 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.270 2002/12/13 21:48:30 henning Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -4350,7 +4350,10 @@ done: mtag = m_tag_get(PACKET_TAG_PF_QID, sizeof(*atag), M_NOWAIT); if (mtag != NULL) { atag = (struct altq_tag *)(mtag + 1); - atag->qid = r->qid; + if (pd.tos == IPTOS_LOWDELAY) + atag->qid = r->pqid; + else + atag->qid = r->qid; /* add hints for ecn */ atag->af = AF_INET; atag->hdr = h; |