diff options
author | brian <brian@FreeBSD.org> | 2001-07-03 22:20:19 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2001-07-03 22:20:19 +0000 |
commit | 0deba2c342284728c367d996a120510bed8a07a4 (patch) | |
tree | 753c521335e8c5586213ea14afc2e9e2080bf808 /usr.sbin/ppp/deflate.c | |
parent | c6b698395d9dda67bfd2f061db42b9e6038c790b (diff) | |
download | FreeBSD-src-0deba2c342284728c367d996a120510bed8a07a4.zip FreeBSD-src-0deba2c342284728c367d996a120510bed8a07a4.tar.gz |
Reduce the interface MTU by 2 when MPPE has been successfully negotiated.
This is necessary because MPPE will combine the protocol id with the
payload received on the tun interface, encrypt it, then prepend its
own protocol id, effectively increasing the payload by two bytes.
Diffstat (limited to 'usr.sbin/ppp/deflate.c')
-rw-r--r-- | usr.sbin/ppp/deflate.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/ppp/deflate.c b/usr.sbin/ppp/deflate.c index 340d048..ef04c27 100644 --- a/usr.sbin/ppp/deflate.c +++ b/usr.sbin/ppp/deflate.c @@ -567,6 +567,7 @@ const struct ccp_algorithm PppdDeflateAlgorithm = { DeflateDictSetup }, { + 0, DeflateInitOptsOutput, DeflateSetOptsOutput, DeflateInitOutput, @@ -591,6 +592,7 @@ const struct ccp_algorithm DeflateAlgorithm = { DeflateDictSetup }, { + 0, DeflateInitOptsOutput, DeflateSetOptsOutput, DeflateInitOutput, |