summaryrefslogtreecommitdiffstats
path: root/sys/net/bpfdesc.h
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2018-08-21 18:23:24 -0300
committerLuiz Souza <luiz@netgate.com>2018-08-21 18:34:40 -0300
commiteb425b2af5af028ebc9eeae18a73ee2883e412c4 (patch)
tree738fdcde1a23f0f13a7570b99de90992a946f566 /sys/net/bpfdesc.h
parentcb6868b2765f80924bbdbc052ca6d6908034e3c5 (diff)
downloadFreeBSD-src-eb425b2af5af028ebc9eeae18a73ee2883e412c4.zip
FreeBSD-src-eb425b2af5af028ebc9eeae18a73ee2883e412c4.tar.gz
Add a ioctl to set the VLAN Priority on packets sent by bpf.
This allows the use of VLAN PCP in dhclient. Ticket #7425 (cherry picked from commit f22c29d90e15667cd92c3a0b7b99fdb7c482014a)
Diffstat (limited to 'sys/net/bpfdesc.h')
-rw-r--r--sys/net/bpfdesc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/bpfdesc.h b/sys/net/bpfdesc.h
index 3fa8dfb..b5af5cb 100644
--- a/sys/net/bpfdesc.h
+++ b/sys/net/bpfdesc.h
@@ -87,6 +87,7 @@ struct bpf_d {
int bd_feedback; /* true to feed back sent packets */
int bd_async; /* non-zero if packet reception should generate signal */
int bd_sig; /* signal to send upon packet reception */
+ int bd_pcp; /* VLAN pcp tag */
struct sigio * bd_sigio; /* information for async I/O */
struct selinfo bd_sel; /* bsd select info */
struct mtx bd_lock; /* per-descriptor lock */
OpenPOWER on IntegriCloud