Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jan 2016 17:04:42 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-net@FreeBSD.org
Subject:   [Bug 206478] Setting laggproto fails on 10.2
Message-ID:  <bug-206478-2472-6d6J7jNhXw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-206478-2472@https.bugs.freebsd.org/bugzilla/>
References:  <bug-206478-2472@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D206478

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

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

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-206478-2472-6d6J7jNhXw>