From owner-svn-src-head@freebsd.org Tue May 24 11:47:15 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 65A6EB431E4; Tue, 24 May 2016 11:47:15 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 35F8C1CC9; Tue, 24 May 2016 11:47:15 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u4OBlETB060514; Tue, 24 May 2016 11:47:14 GMT (envelope-from tuexen@FreeBSD.org) Received: (from tuexen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u4OBlEVc060513; Tue, 24 May 2016 11:47:14 GMT (envelope-from tuexen@FreeBSD.org) Message-Id: <201605241147.u4OBlEVc060513@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tuexen set sender to tuexen@FreeBSD.org using -f From: Michael Tuexen Date: Tue, 24 May 2016 11:47:14 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r300603 - head/sys/net X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 May 2016 11:47:15 -0000 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 */ };