On Wed, Sep 18, 2013 at 12:01:10AM -0700, Loganaden Velvindron wrote:
> Index: in6.c
> ===================================================================
> RCS file: /cvs/src/sys/netinet6/in6.c,v
> retrieving revision 1.118
> diff -u -p -r1.118 in6.c
> --- in6.c       26 Aug 2013 07:15:58 -0000      1.118
> +++ in6.c       18 Sep 2013 06:54:13 -0000
> @@ -426,8 +426,11 @@ in6_control(struct socket *so, u_long cm
>                 sa6 = &ifr->ifr_addr;
>                 break;
>         case SIOCSIFADDR:
> +       case SIOCSIFDSTADDR:
> +       case SIOCSIFBRDADDR:
> +       case SIOCSIFNETMASK:
>                 /*
> -                * Do not pass this ioctl to driver handler since it is not
> +                * Do not pass those ioctl to driver handler since they are 
> not
>                  * properly setup. Instead just error out.
>                  */
>                 return (EOPNOTSUPP);

This diff uses spaces instead of tabs.  Please use tabs to make
diffs apply cleanly.

The errno EAFNOSUPPORT "Address family not supported by protocol
family" is more specific for that error, at least if_ppp and if_sl
use that.

anyway, code is correct, OK bluhm@

Reply via email to