svn commit: r295796 - head/sys/net

Marcelo Araujo araujo at FreeBSD.org
Fri Feb 19 06:35:54 UTC 2016


Author: araujo
Date: Fri Feb 19 06:35:53 2016
New Revision: 295796
URL: https://svnweb.freebsd.org/changeset/base/295796

Log:
  Fix regression introduced on 272446r.
  
  lagg(4) supports the protocol none, where it disables any traffic without
  disabling the lagg(4) interface itself.
  
  PR:		206921
  Submitted by:	Pushkar Kothavade <pushkarbk at gmail.com>
  Reviewed by:	rpokala
  Approved by:	bapt (mentor)
  MFC after:	3 weeks
  Sponsored by:	gandi.net
  Differential Revision:	https://reviews.freebsd.org/D5076

Modified:
  head/sys/net/if_lagg.c

Modified: head/sys/net/if_lagg.c
==============================================================================
--- head/sys/net/if_lagg.c	Fri Feb 19 05:59:38 2016	(r295795)
+++ head/sys/net/if_lagg.c	Fri Feb 19 06:35:53 2016	(r295796)
@@ -1260,7 +1260,7 @@ lagg_ioctl(struct ifnet *ifp, u_long cmd
 		error = priv_check(td, PRIV_NET_LAGG);
 		if (error)
 			break;
-		if (ra->ra_proto < 1 || ra->ra_proto >= LAGG_PROTO_MAX) {
+		if (ra->ra_proto >= LAGG_PROTO_MAX) {
 			error = EPROTONOSUPPORT;
 			break;
 		}


More information about the svn-src-head mailing list