Date: Fri, 19 Feb 2016 06:35:53 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r295796 - head/sys/net Message-ID: <201602190635.u1J6Zr9S077166@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602190635.u1J6Zr9S077166>