summaryrefslogtreecommitdiff
path: root/usr.sbin/ppp
diff options
context:
space:
mode:
authorBrian Somers <brian@FreeBSD.org>2004-06-29 07:40:38 +0000
committerBrian Somers <brian@FreeBSD.org>2004-06-29 07:40:38 +0000
commitd5939061993c5251fbdb41f9efed60598a261f41 (patch)
tree17271714a7062d1b36571cd242d7d4be037312f8 /usr.sbin/ppp
parenta0ed72dc48bb5c2078e2bf3980e1d39967569b38 (diff)
downloadsrc-test2-d5939061993c5251fbdb41f9efed60598a261f41.tar.gz
src-test2-d5939061993c5251fbdb41f9efed60598a261f41.zip
Notes
Diffstat (limited to 'usr.sbin/ppp')
-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 1fdbf0201c22..b4dc64ed3637 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)
/*-