]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Split tcp_mss() in tcp_mss() and tcp_mss_update() where the former
authorbz <bz@FreeBSD.org>
Sun, 7 Sep 2008 18:50:25 +0000 (18:50 +0000)
committerbz <bz@FreeBSD.org>
Sun, 7 Sep 2008 18:50:25 +0000 (18:50 +0000)
commit315b1413ee280cc24de730d842a4d54a0619cefa
tree37f18dd43810b276a89f19f44de627bae766a8c6
parentf6147056c6e1989d3a47e244083c7b5ad1514887
Split tcp_mss() in tcp_mss() and tcp_mss_update() where the former
calls the latter.

Merge tcp_mss_update() with code from tcp_mtudisc() basically
doing the same thing.

This gives us one central place where we calcuate and check mss values
to update t_maxopd (maximum mss + options length) instead of two slightly
different but almost equal implementations to maintain.

PR: kern/118455
Reviewed by: silby (back in March)
MFC after: 2 months
sys/netinet/tcp_input.c
sys/netinet/tcp_subr.c
sys/netinet/tcp_var.h