tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [PATCH] ip6_mroute.c return same value as IPv4



In article <20140212125817.GA15241%mx.elandsys.com@localhost>,
Loganaden Velvindron  <logan%elandsys.com@localhost> wrote:
>From FreeBSD:
>
>"IPv4 code returns EPERM if mrouter not initialized. Make IPv6 do the same."
>
>Index: src/sys/netinet6/ip6_mroute.c
>===================================================================
>RCS file: /cvsroot/src/sys/netinet6/ip6_mroute.c,v
>retrieving revision 1.104
>diff -u -p -r1.104 ip6_mroute.c
>--- src/sys/netinet6/ip6_mroute.c      14 Sep 2013 11:33:59 -0000      1.104
>+++ src/sys/netinet6/ip6_mroute.c      12 Feb 2014 12:55:53 -0000
>@@ -317,7 +317,7 @@ ip6_mrouter_set(struct socket *so, struc
>       mifi_t mifi;
> 
>       if (sopt->sopt_name != MRT6_INIT && so != ip6_mrouter)
>-              return (EACCES);
>+              return (EPERM);
> 
>       error = 0;

LGTM.

christos




Home | Main Index | Thread Index | Old Index