kern/178472: make return code consistent with IPv4 code

Sven-Thorsten Dietrich sven at vyatta.com
Fri May 10 06:10:00 UTC 2013


>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:


More information about the freebsd-bugs mailing list