diff options
author | andre <andre@FreeBSD.org> | 2007-04-20 15:08:09 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2007-04-20 15:08:09 +0000 |
commit | 853a532b7f46191440705eb23979690998beb8b0 (patch) | |
tree | 2af00482591182db0a737a91478ea46466671957 /sys/netinet/tcp_syncache.c | |
parent | edec8cf92bff97762899e3f08bf27d67c2a8a148 (diff) | |
download | FreeBSD-src-853a532b7f46191440705eb23979690998beb8b0.zip FreeBSD-src-853a532b7f46191440705eb23979690998beb8b0.tar.gz |
o Remove unused and redundant TCP option definitions
o Replace usage of MAX_TCPOPTLEN with the correctly constructed and
derived MAX_TCPOPTLEN
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 881495a..ddea1ec 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -1108,7 +1108,7 @@ syncache_respond(struct syncache *sc) mssopt = max( min(sc->sc_peer_mss, mssopt), tcp_minmss); /* XXX: Assume that the entire packet will fit in a header mbuf. */ - KASSERT(max_linkhdr + tlen + MAX_TCPOPTLEN <= MHLEN, + KASSERT(max_linkhdr + tlen + TCP_MAXOLEN <= MHLEN, ("syncache: mbuf too small")); /* Create the IP+TCP header from scratch. */ |