summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2005-07-06 03:40:14 +0000
committerBrad Smith <brad@cvs.openbsd.org>2005-07-06 03:40:14 +0000
commit313bba50788777cd2d1ed366b5ba95e902469122 (patch)
tree1a526fc1c701161b9abcd01ba72136e25af3b373
parentfe75099af4d6407556b221ca13a90d7d4e5492fc (diff)
rev 1.7
Reduce MAXMSS limit by 12 bytes to allow for rfc 1323. From brian FreeBSD ok deraadt@
-rw-r--r--usr.sbin/ppp/ppp/tcpmss.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/ppp/tcpmss.c b/usr.sbin/ppp/ppp/tcpmss.c
index e834e5d27b0..2c8b9dcbfaa 100644
--- a/usr.sbin/ppp/ppp/tcpmss.c
+++ b/usr.sbin/ppp/ppp/tcpmss.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $OpenBSD: tcpmss.c,v 1.6 2002/06/15 08:02:01 brian Exp $
+ * $OpenBSD: tcpmss.c,v 1.7 2005/07/06 03:40:13 brad Exp $
*/
#include <sys/param.h>
@@ -70,7 +70,7 @@
* We are in a liberal position about MSS
* (RFC 879, section 7).
*/
-#define MAXMSS(mtu) (mtu - sizeof(struct ip) - sizeof(struct tcphdr))
+#define MAXMSS(mtu) ((mtu) - sizeof(struct ip) - sizeof(struct tcphdr) - 12)
/*-