PERFORCE change 128922 for review
Kip Macy
kmacy at FreeBSD.org
Sat Nov 10 21:39:24 PST 2007
http://perforce.freebsd.org/chv.cgi?CH=128922
Change 128922 by kmacy at kmacy:storage:toestack on 2007/11/11 05:39:03
disable non-enforceable checks in the offload case
Affected files ...
.. //depot/projects/toestack/sys/netinet/tcp_syncache.c#6 edit
Differences ...
==== //depot/projects/toestack/sys/netinet/tcp_syncache.c#6 (text+ko) ====
@@ -877,7 +877,7 @@
* Segment validation:
* ACK must match our initial sequence number + 1 (the SYN|ACK).
*/
- if (th->th_ack != sc->sc_iss + 1) {
+ if (th->th_ack != sc->sc_iss + 1 && sc->sc_inc.inc_eh == NULL) {
if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
log(LOG_DEBUG, "%s; %s: ACK %u != ISS+1 %u, segment "
"rejected\n", s, __func__, th->th_ack, sc->sc_iss);
@@ -888,7 +888,7 @@
* number + 1 (the SYN) because we didn't ACK any data that
* may have come with the SYN.
*/
- if (th->th_seq != sc->sc_irs + 1) {
+ if (th->th_seq != sc->sc_irs + 1 && sc->sc_inc.inc_eh == NULL) {
if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
log(LOG_DEBUG, "%s; %s: SEQ %u != IRS+1 %u, segment "
"rejected\n", s, __func__, th->th_seq, sc->sc_irs);
@@ -915,7 +915,7 @@
* If timestamps were negotiated the reflected timestamp
* must be equal to what we actually sent in the SYN|ACK.
*/
- if ((to->to_flags & TOF_TS) && to->to_tsecr != sc->sc_ts) {
+ if ((to->to_flags & TOF_TS) && to->to_tsecr != sc->sc_ts && sc->sc_inc.inc_eh == NULL) {
if ((s = tcp_log_addrs(inc, th, NULL, NULL)))
log(LOG_DEBUG, "%s; %s: TSECR %u != TS %u, "
"segment rejected\n",
More information about the p4-projects
mailing list