summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-02-19 06:35:53 +0000
committeraraujo <araujo@FreeBSD.org>2016-02-19 06:35:53 +0000
commit42270c385fa7f451dab95ec9545e1342d89d75d6 (patch)
treec91b90db14cbf2e3c5f07bdd97403a40602c610b /sys/net
parentddfd62ef7929bf14f6750b66afb1bb14e3882d21 (diff)
downloadFreeBSD-src-42270c385fa7f451dab95ec9545e1342d89d75d6.zip
FreeBSD-src-42270c385fa7f451dab95ec9545e1342d89d75d6.tar.gz
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
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_lagg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_lagg.c b/sys/net/if_lagg.c
index e1e1837..0477122 100644
--- a/sys/net/if_lagg.c
+++ b/sys/net/if_lagg.c
@@ -1260,7 +1260,7 @@ lagg_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
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;
}
OpenPOWER on IntegriCloud