svn commit: r300603 - head/sys/net
Michael Tuexen
tuexen at FreeBSD.org
Tue May 24 11:47:15 UTC 2016
Author: tuexen
Date: Tue May 24 11:47:14 2016
New Revision: 300603
URL: https://svnweb.freebsd.org/changeset/base/300603
Log:
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
Modified:
head/sys/net/if_tun.h
Modified: head/sys/net/if_tun.h
==============================================================================
--- head/sys/net/if_tun.h Tue May 24 11:44:43 2016 (r300602)
+++ head/sys/net/if_tun.h Tue May 24 11:47:14 2016 (r300603)
@@ -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 */
};
More information about the svn-src-head
mailing list