pf: Retrieve DSCP value from the IPv6 header
Teach pf to read the DSCP value from the IPv6 header so that we can match on them. Reviewed by: donner MFC after: 2 weeks Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D29048
This commit is contained in:
parent
466df976ba
commit
f19323847c
@ -6384,7 +6384,7 @@ pf_test6(int dir, int pflags, struct ifnet *ifp, struct mbuf **m0, struct inpcb
|
||||
pd.sidx = (dir == PF_IN) ? 0 : 1;
|
||||
pd.didx = (dir == PF_IN) ? 1 : 0;
|
||||
pd.af = AF_INET6;
|
||||
pd.tos = 0;
|
||||
pd.tos = (ntohl(h->ip6_flow) >> 20) & 0xfc;
|
||||
pd.tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
|
||||
|
||||
off = ((caddr_t)h - m->m_data) + sizeof(struct ip6_hdr);
|
||||
|
Loading…
Reference in New Issue
Block a user