mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-28 08:02:54 +00:00
pf: handle ACK prioritization for v6
Obtained from: OpenBSD, sthen <sthen@openbsd.org>, 1a3657e9c6 Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D46592
This commit is contained in:
parent
5130165be1
commit
dea41633e5
@ -9525,6 +9525,9 @@ pf_test6(int dir, int pflags, struct ifnet *ifp, struct mbuf **m0, struct inpcb
|
||||
break;
|
||||
}
|
||||
|
||||
if ((pd.hdr.tcp.th_flags & TH_ACK) && pd.p_len == 0)
|
||||
use_2nd_queue = 1;
|
||||
|
||||
action = pf_normalize_tcp(kif, m, 0, off, h, &pd);
|
||||
if (action == PF_DROP)
|
||||
goto done;
|
||||
@ -9701,7 +9704,7 @@ pf_test6(int dir, int pflags, struct ifnet *ifp, struct mbuf **m0, struct inpcb
|
||||
} else {
|
||||
if (s != NULL)
|
||||
pd.pf_mtag->qid_hash = pf_state_hash(s);
|
||||
if (pd.tos & IPTOS_LOWDELAY)
|
||||
if (use_2nd_queue || (pd.tos & IPTOS_LOWDELAY))
|
||||
pd.pf_mtag->qid = pd.act.pqid;
|
||||
else
|
||||
pd.pf_mtag->qid = pd.act.qid;
|
||||
|
Loading…
Reference in New Issue
Block a user