Subject: misc/16830: The "SMALL" constant is used in the sources to route incorrectly
To: None <gnats-bugs@gnats.netbsd.org>
From: None <chris@microware.com>
List: netbsd-bugs
Date: 05/15/2002 07:13:37
>Number:         16830
>Category:       misc
>Synopsis:       The "SMALL" constant is used in the sources to route incorrectly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 15 07:14:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Chris Severtson
>Release:        1.5.1
>Organization:
RadiSys
>Environment:
not applicable
>Description:
In certain places in the sources to route, the constant SMALL is used to exclude INET6 functionality.
>How-To-Repeat:
Compile route without defining SMALL, but define INET6.
use the command "route show" and you should see correct output.

Compile route with both SMALL and INET6 defined.
use the command "route show" and you should see incorrect output for the "Internet6:" output.

Just one example of the problem is in the function p_sockaddr() in show.c. Looking at the code you can see that if you define SMALL, then INET6 addresses are not going to be displayed.

There are many cases in the route sources where this happens.
>Fix:
A simple code review of the sources looking to make sure that code that is conditionalized by "SMALL" does not exclude INET6 functionality.
>Release-Note:
>Audit-Trail:
>Unformatted: