Project

General

Profile

Actions

Bug #506

closed

Kernel build failure when INET6 not defined

Added by memmerto over 17 years ago. Updated over 17 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

If you compile a kernel with INET6 not defined, you will get the following
failure:

This appears to be a new problem introduced by rev 1.14 of kern/kern_jail.c.

The following patch (also attached to preserve whitespace) fixes the problem
by wrapping the INET6-specific code with the proper #if check.

--- kern_jail.c 29 Dec 2006 18:02:56 -0000 1.14
+++ kern_jail.c 31 Dec 2006 07:19:52 -0000
@ -567,8 +567,10 @

if (jsin->sin_family == AF_INET)
oip = inet_ntoa(jsin->sin_addr);
#if INET6
else
oip = ip6_sprintf(&jsin6->sin6_addr);
#endif
if ( (jlssize - jlsused) < (sizeof(oip) + 1)) {
error = ERANGE;

Files

kern_jail.patch.txt (480 Bytes) kern_jail.patch.txt memmerto, 01/06/2007 07:30 PM
Actions #1

Updated by dillon over 17 years ago

No big deal, don't worry about it. As bugs go these are pretty tame.

-Matt
Actions #2

Updated by TGEN over 17 years ago

Whoops, I should have caught those, my apologies.

Cheers, and Happy New year,
--
Thomas E. Spanjaard

Actions

Also available in: Atom PDF