Port-i386 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: NET4501 w/options IPSEC breaks ipv6 at compile time?
On Mon, 18 Jun 2012, Greg Troxel wrote:
I wonder if it's an interaction with NET4501 specifying:
makeoptions COPTS="-Os"
What if you just initialize the variable to NULL?
The following modification make the compiler not complain when
compiling NET4501 variants with options IPSEC enabled. It appears
not to cause any grief for GENERIC, et al.
Index: sys/netinet6/ip6_output.c
===================================================================
RCS file: /cvsroot/src/sys/netinet6/ip6_output.c,v
retrieving revision 1.145
diff -u -p -r1.145 ip6_output.c
--- sys/netinet6/ip6_output.c 5 Feb 2012 00:41:15 -0000 1.145
+++ sys/netinet6/ip6_output.c 18 Jun 2012 22:06:05 -0000
@@ -992,7 +992,7 @@ skip_ipsec2:;
goto bad;
} else {
struct mbuf **mnext, *m_frgpart;
- struct ip6_frag *ip6f;
+ struct ip6_frag *ip6f=NULL;
u_int32_t id = htonl(ip6_randomid());
u_char nextproto;
#if 0 /* see below */
--
|/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X
|\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD
| X No HTML/proprietary data in email. BSD just sits there and works!
|/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
Home |
Main Index |
Thread Index |
Old Index