diff options
author | tuexen <tuexen@FreeBSD.org> | 2016-05-24 11:47:14 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2016-05-24 11:47:14 +0000 |
commit | d1b4674834381040c44ef9c9d5b5708841f62eea (patch) | |
tree | 86b920e6c2016237b784646452d48afc37d87301 /sys/net | |
parent | 0dce8578e26fa7ce383f1abf7aa9afa2a32ea98b (diff) | |
download | FreeBSD-src-d1b4674834381040c44ef9c9d5b5708841f62eea.zip FreeBSD-src-d1b4674834381040c44ef9c9d5b5708841f62eea.tar.gz |
Allow an MTU of 65535 bytes to be set via TUN[SG]IFINFO. This requires
changing the type on the mtu field in struct tuninfo from short to
unsigned short.
This is used, for example, by packetdrill to test with MTUs up to the
maximum value.
Differential Revision: 6452
Diffstat (limited to 'sys/net')
-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 382881c..1ea375f 100644 --- a/sys/net/if_tun.h +++ b/sys/net/if_tun.h @@ -25,11 +25,11 @@ #define TUNMTU 1500 /* Maximum receive packet size (hard limit) */ -#define TUNMRU 16384 +#define TUNMRU 65535 struct tuninfo { int baudrate; /* linespeed */ - short mtu; /* maximum transmission unit */ + unsigned short mtu; /* maximum transmission unit */ u_char type; /* ethernet, tokenring, etc. */ u_char dummy; /* place holder */ }; |