diff options
author | bms <bms@FreeBSD.org> | 2004-02-13 18:21:45 +0000 |
---|---|---|
committer | bms <bms@FreeBSD.org> | 2004-02-13 18:21:45 +0000 |
commit | 09ad0862e6acad72dd0217846a1c16d5bea5c454 (patch) | |
tree | c6a4675fc95c9e9038ef1246db0e9eaaccc13eea /sys/netinet/tcp_syncache.c | |
parent | b43aec666724244cc18840970e84dca4d717b260 (diff) | |
download | FreeBSD-src-09ad0862e6acad72dd0217846a1c16d5bea5c454.zip FreeBSD-src-09ad0862e6acad72dd0217846a1c16d5bea5c454.tar.gz |
Brucification.
Submitted by: bde
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r-- | sys/netinet/tcp_syncache.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c index 14eb315..d2ed8fc 100644 --- a/sys/netinet/tcp_syncache.c +++ b/sys/netinet/tcp_syncache.c @@ -699,7 +699,7 @@ syncache_socket(sc, lso, m) #ifdef TCP_SIGNATURE if (sc->sc_flags & SCF_SIGNATURE) tp->t_flags |= TF_SIGNATURE; -#endif /* TCP_SIGNATURE */ +#endif /* * Set up MSS and get cached values from tcp_hostcache. @@ -985,7 +985,7 @@ syncache_add(inc, to, th, sop, m) */ if (to->to_flags & TOF_SIGNATURE) sc->sc_flags = SCF_SIGNATURE; -#endif /* TCP_SIGNATURE */ +#endif /* * XXX @@ -1100,9 +1100,9 @@ syncache_respond(sc, m) ((sc->sc_flags & SCF_TIMESTAMP) ? TCPOLEN_TSTAMP_APPA : 0) + ((sc->sc_flags & SCF_CC) ? TCPOLEN_CC_APPA * 2 : 0); #ifdef TCP_SIGNATURE - optlen += ((sc->sc_flags & SCF_SIGNATURE) ? - (TCPOLEN_SIGNATURE + 2) : 0); -#endif /* TCP_SIGNATURE */ + optlen += (sc->sc_flags & SCF_SIGNATURE) ? + (TCPOLEN_SIGNATURE + 2) : 0; +#endif } tlen = hlen + sizeof(struct tcphdr) + optlen; @@ -1233,7 +1233,7 @@ syncache_respond(sc, m) *bp++ = TCPOLEN_SIGNATURE; for (i = 0; i < TCP_SIGLEN; i++) *bp++ = 0; - tcpsignature_compute(m, sizeof(struct ip), 0, optlen, + tcp_signature_compute(m, sizeof(struct ip), 0, optlen, optp + 2, IPSEC_DIR_OUTBOUND); *bp++ = TCPOPT_NOP; *bp++ = TCPOPT_EOL; |