diff options
author | brian <brian@FreeBSD.org> | 2000-11-28 13:18:35 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2000-11-28 13:18:35 +0000 |
commit | 36c3bc9fdd02adc5f96a3e76e563a04a7c574260 (patch) | |
tree | b961d5c39b6396fc1d98e9e69cf6ede026166c4d /usr.sbin/ppp/tun.c | |
parent | 288e8299bbed979c25cb497be766dfaada3da557 (diff) | |
download | FreeBSD-src-36c3bc9fdd02adc5f96a3e76e563a04a7c574260.zip FreeBSD-src-36c3bc9fdd02adc5f96a3e76e563a04a7c574260.tar.gz |
Add ``enable/disable tcpmssfixup'', defaulting to enabled.
Suggested by: julian
Hijacked from: ru (ports/net/tcpmssd)
Diffstat (limited to 'usr.sbin/ppp/tun.c')
-rw-r--r-- | usr.sbin/ppp/tun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ppp/tun.c b/usr.sbin/ppp/tun.c index c35894a..d391f49 100644 --- a/usr.sbin/ppp/tun.c +++ b/usr.sbin/ppp/tun.c @@ -74,7 +74,7 @@ #include "tun.h" void -tun_configure(struct bundle *bundle, int mtu) +tun_configure(struct bundle *bundle) { #ifdef __NetBSD__ struct ifreq ifr; @@ -88,7 +88,7 @@ tun_configure(struct bundle *bundle, int mtu) } sprintf(ifr.ifr_name, "tun%d", bundle->unit); - ifr.ifr_mtu = mtu; + ifr.ifr_mtu = bundle->mtu; if (ioctl(s, SIOCSIFMTU, &ifr) < 0) log_Printf(LogERROR, "tun_configure: ioctl(SIOCSIFMTU): %s\n", strerror(errno)); @@ -99,7 +99,7 @@ tun_configure(struct bundle *bundle, int mtu) memset(&info, '\0', sizeof info); info.type = IFT_PPP; - info.mtu = mtu; + info.mtu = bundle->mtu; info.baudrate = bundle->bandwidth; #ifdef __OpenBSD__ |