diff options
author | fenner <fenner@FreeBSD.org> | 1996-12-16 19:23:34 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1996-12-16 19:23:34 +0000 |
commit | b7f56c720419d57c6fd04f8556283eb6cf9ef4e7 (patch) | |
tree | 4463d79a8b187a5b0c35a794ad5eda0644469541 /sys/net/if_tun.h | |
parent | ec712ef4762ea99c9ccd86fb79d59fb1e68d8213 (diff) | |
download | FreeBSD-src-b7f56c720419d57c6fd04f8556283eb6cf9ef4e7.zip FreeBSD-src-b7f56c720419d57c6fd04f8556283eb6cf9ef4e7.tar.gz |
Change default tun MTU back to 1500.
Use the interface MTU instead of the constant when deciding what
packets to accept.
Allow using the SIOCSIFMTU ioctl (e.g. "ifconfig tun0 mtu XXX") to
set the MTU.
Diffstat (limited to 'sys/net/if_tun.h')
-rw-r--r-- | sys/net/if_tun.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_tun.h b/sys/net/if_tun.h index c31b548..404a877 100644 --- a/sys/net/if_tun.h +++ b/sys/net/if_tun.h @@ -38,8 +38,8 @@ struct tun_softc { struct selinfo tun_wsel; /* write select (not used) */ }; -/* Maximum packet size */ -#define TUNMTU 1600 +/* Default maximum packet size */ +#define TUNMTU 1500 struct tuninfo { int baudrate; /* linespeed */ |