tech-net archive

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

[PATCH] ip6_mroute.c return same value as IPv4



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;


Home | Main Index | Thread Index | Old Index