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

LN <lakshm...@msystechnologies.com> changed:

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

--- Comment #2 from LN <lakshm...@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.
_______________________________________________
freebsd-net@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to