summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/tcpmss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/ppp/tcpmss.c b/usr.sbin/ppp/tcpmss.c
index 1fdbf02..b4dc64e 100644
--- a/usr.sbin/ppp/tcpmss.c
+++ b/usr.sbin/ppp/tcpmss.c
@@ -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)
/*-
OpenPOWER on IntegriCloud