summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_sack.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2007-03-23 18:33:21 +0000
committerandre <andre@FreeBSD.org>2007-03-23 18:33:21 +0000
commit8057f896948e710b7ef3c79a9ff199364c0ae084 (patch)
tree0ddae26d2fdc1f3b0685d969c22daa231415b91a /sys/netinet/tcp_sack.c
parent55f67dd8da67ce2dfbeef5af920c854ef0469b87 (diff)
downloadFreeBSD-src-8057f896948e710b7ef3c79a9ff199364c0ae084.zip
FreeBSD-src-8057f896948e710b7ef3c79a9ff199364c0ae084.tar.gz
Bring SACK option handling in tcp_dooptions() in line with all other
options and ajust users accordingly.
Diffstat (limited to 'sys/netinet/tcp_sack.c')
-rw-r--r--sys/netinet/tcp_sack.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet/tcp_sack.c b/sys/netinet/tcp_sack.c
index dca7cd4..39aa87a 100644
--- a/sys/netinet/tcp_sack.c
+++ b/sys/netinet/tcp_sack.c
@@ -371,6 +371,7 @@ tcp_sack_doack(struct tcpcb *tp, struct tcpopt *to, tcp_seq th_ack)
int i, j, num_sack_blks;
INP_LOCK_ASSERT(tp->t_inpcb);
+ KASSERT(to->to_flags & TOF_SACK, ("%s: SACK invalid", __func__));
num_sack_blks = 0;
/*
OpenPOWER on IntegriCloud