Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 May 2016 11:47:14 +0000 (UTC)
From:      Michael Tuexen <tuexen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300603 - head/sys/net
Message-ID:  <201605241147.u4OBlEVc060513@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */
 };



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605241147.u4OBlEVc060513>