Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: syssrc

Module Name:    syssrc
Committed By:   itojun
Date:           Thu Sep 23 02:21:34 UTC 1999

Modified Files:
        syssrc/sys/netinet: tcp_input.c tcp_output.c tcp_subr.c tcp_var.h

Log Message:
cleanup and correct TCP MSS consideration with IPsec headers.

MSS advertisement must always be:
        max(if mtu) - ip hdr siz - tcp hdr siz
We violated this in the previous code so it was fixed.

tcp_mss_to_advertise() now takes af (af on wire) as its argument,
to compute right ip hdr siz.

tcp_segsize() will take care of IPsec header size.
One thing I'm not really sure is how to handle IPsec header size in
*rxsegsizep (inbound segment size estimation).
The current code subtracts possible *outbound* IPsec size from *rxsegsizep,
hoping that the peer is using the same IPsec policy as me.
It may not be applicable, could TCP gulu please comment...

To generate a diff of this commit:
cvs rdiff -r1.95 -r1.96 syssrc/sys/netinet/tcp_input.c
cvs rdiff -r1.51 -r1.52 syssrc/sys/netinet/tcp_output.c
cvs rdiff -r1.79 -r1.80 syssrc/sys/netinet/tcp_subr.c
cvs rdiff -r1.67 -r1.68 syssrc/sys/netinet/tcp_var.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index