summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2011-07-09 04:53:34 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2011-07-09 04:53:34 +0000
commit3eeb355b3f6d17e245e2eb527538ec7e35cd3267 (patch)
treeabd4da3a9dc3a2bf6e91552fb20b55af7308e0d8 /sys/net
parent8068df85f0376136a26498dfc5c2c533b77715a8 (diff)
sned BPDUs at prio 6, just like lacp and carp, ryan zinke mpf
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/bridgestp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/bridgestp.c b/sys/net/bridgestp.c
index 27e94daec79..bfc282c9a4c 100644
--- a/sys/net/bridgestp.c
+++ b/sys/net/bridgestp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bridgestp.c,v 1.39 2010/11/20 14:23:09 fgsch Exp $ */
+/* $OpenBSD: bridgestp.c,v 1.40 2011/07/09 04:53:33 henning Exp $ */
/*
* Copyright (c) 2000 Jason L. Wright (jason@thought.net)
@@ -178,6 +178,8 @@ __FBSDID("$FreeBSD: /repoman/r/ncvs/src/sys/net/bridgestp.c,v 1.25 2006/11/03 03
#define INFO_SAME 0
#define INFO_WORSE -1
+#define BSTP_IFQ_PRIO 6
+
/*
* Because BPDU's do not make nicely aligned structures, two different
* declarations are used: bstp_?bpdu (wire representation, packed) and
@@ -375,6 +377,7 @@ bstp_transmit_tcn(struct bstp_state *bs, struct bstp_port *bp)
return;
m->m_pkthdr.rcvif = ifp;
m->m_pkthdr.len = sizeof(*eh) + sizeof(bpdu);
+ m->m_pkthdr.pf.prio = BSTP_IFQ_PRIO;
m->m_len = m->m_pkthdr.len;
eh = mtod(m, struct ether_header *);
@@ -526,6 +529,7 @@ bstp_send_bpdu(struct bstp_state *bs, struct bstp_port *bp,
}
m->m_pkthdr.rcvif = ifp;
m->m_len = m->m_pkthdr.len;
+ m->m_pkthdr.pf.prio = BSTP_IFQ_PRIO;
bp->bp_txcount++;
len = m->m_pkthdr.len;