kern/64090: remove confusing EDQUOT from routing API

Gleb Smirnoff glebius at cell.sick.ru
Thu Mar 11 00:20:15 PST 2004


>Number:         64090
>Category:       kern
>Synopsis:       remove confusing EDQUOT from routing API
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 11 00:20:14 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Gleb Smirnoff
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
System: FreeBSD think.oilspace.com 5.2-CURRENT FreeBSD 5.2-CURRENT #12: Tue Mar  9 11:40:30 MSK 2004     glebius at think.oilspace.com:/usr/obj/usr/src/sys/THINKPAD_T20  i386

>Description:

	When an attempt to create a route with gateway reached by the same
	route is made, kernel returns confusing EDQUOT error.

How-To-Repeat:

	route change default 1.1.1.1

>How-To-Repeat:
>Fix:

	Change returning error in route.c (line 1102 in rev. 1.94) to
	something more clear. Change this constant in src/sbin/route/route.c
	(line 775 in rev. 1.70) as well.

	Instead of EDQUOT you can use ELOOP, or at least EINVAL. Or a new errno
	called ERECUR /* recursion detected */ can be created.
>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list