Date: Fri, 10 May 2013 06:09:38 GMT From: Sven-Thorsten Dietrich <sven@vyatta.com> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/178472: make return code consistent with IPv4 code Message-ID: <201305100609.r4A69cwx092392@oldred.FreeBSD.org> Resent-Message-ID: <201305100610.r4A6A06C043648@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 178472 >Category: kern >Synopsis: make return code consistent with IPv4 code >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 10 06:10:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Sven-Thorsten Dietrich >Release: head >Organization: Vyatta >Environment: N/A >Description: IPv4 code returns EPERM if mrouter not initialized. Make IPv6 do the same. >How-To-Repeat: >Fix: Patch attached with submission follows: Index: sys/netinet6/ip6_mroute.c =================================================================== --- sys/netinet6/ip6_mroute.c (revision 250431) +++ sys/netinet6/ip6_mroute.c (working copy) @@ -348,7 +348,7 @@ mifi_t mifi; if (so != V_ip6_mrouter && sopt->sopt_name != MRT6_INIT) - return (EACCES); + return (EPERM); switch (sopt->sopt_name) { case MRT6_INIT: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305100609.r4A69cwx092392>