Actions
Bug #506
closedKernel build failure when INET6 not defined
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
Updated by dillon over 17 years ago
No big deal, don't worry about it. As bugs go these are pretty tame.
-Matt
Updated by TGEN over 17 years ago
Whoops, I should have caught those, my apologies.
Cheers, and Happy New year,
--
Thomas E. Spanjaard
tgen@netphreax.net
Actions