[Bug 206478] Setting laggproto fails on 10.2

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jan 22 17:04:43 UTC 2016


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=206478

LN <lakshmi.n at msystechnologies.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lakshmi.n at msystechnologies.
                   |                            |com

--- Comment #2 from LN <lakshmi.n at msystechnologies.com> ---
> Based on our cursory code reading, below looks like the culprit in function
> lagg_ioctl().
> Please let us know if the below patch works for you, (taken with head).
>
> Thanks,
> LN
>
> Index: sys/net/if_lagg.c
> ===================================================================
> --- sys/net/if_lagg.c    (revision 292047)
> +++ sys/net/if_lagg.c    (working copy)
> @@ -1,2219 +1,2219 @@
> <snipped>
>          break;
>      case SIOCSLAGG:
>          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;
>          }
>
>          LAGG_WLOCK(sc);
>          lagg_proto_detach(sc);
>          LAGG_UNLOCK_ASSERT(sc);
>          lagg_proto_attach(sc, ra->ra_proto);
>          break;
>      case SIOCGLAGGOPTS:
> <snipped>

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-net mailing list