2.5.65: netfiler ipv6 compile failure fix
It looks like the ipv6_ext_hdr function was left in a few files. The patch below removes it. This in turn allows me to compile the kernel. I'm not too sure if it's right as I haven't pulled my finger out yet and started playing with IPv6.
ipv6/netfilter/ip6t_ah.c renamed from ipv6/netfilter/ip6t_ah.c.old +0 -11
@@ -26,17 +26,6 @@__u32 spi; }; -int ipv6_ext_hdr (u8 nexthdr) -{ -return ( (nexthdr ==NEXTHDR_HOP ) || - (nexthdr ==NEXTHDR_ROUTING ) || - (nexthdr ==NEXTHDR_FRAGMENT ) || - (nexthdr ==NEXTHDR_AUTH ) || - (nexthdr ==NEXTHDR_ESP ) || - (nexthdr ==NEXTHDR_NONE ) || - (nexthdr ==NEXTHDR_DEST ) ); -} -/* Returns 1 if the spi is matched by the range, 0 otherwise */ static inline int spi_match (u_int32_t min,u_int32_t max,u_int32_t spi,int invert)
ipv6/netfilter/ip6t_dst.c renamed from ipv6/netfilter/ip6t_dst.c.old +0 -11
@@ -29,17 +29,6 @@ #define DEBUGP(format, args...)#endif -int ipv6_ext_hdr (u8 nexthdr) -{ -return ( (nexthdr ==NEXTHDR_HOP ) || - (nexthdr ==NEXTHDR_ROUTING ) || - (nexthdr ==NEXTHDR_FRAGMENT ) || - (nexthdr ==NEXTHDR_AUTH ) || - (nexthdr ==NEXTHDR_ESP ) || - (nexthdr ==NEXTHDR_NONE ) || - (nexthdr ==NEXTHDR_DEST ) ); -} -/* * (Type & 0xC0) >> 6 * 0 -> ignorable
ipv6/netfilter/ip6t_esp.c renamed from ipv6/netfilter/ip6t_esp.c.old +0 -11
@@ -23,17 +23,6 @@__u32 spi; }; -int ipv6_ext_hdr (u8 nexthdr) -{ -return ( (nexthdr ==NEXTHDR_HOP ) || - (nexthdr ==NEXTHDR_ROUTING ) || - (nexthdr ==NEXTHDR_FRAGMENT ) || - (nexthdr ==NEXTHDR_AUTH ) || - (nexthdr ==NEXTHDR_ESP ) || - (nexthdr ==NEXTHDR_NONE ) || - (nexthdr ==NEXTHDR_DEST ) ); -} -/* Returns 1 if the spi is matched by the range, 0 otherwise */ static inline int spi_match (u_int32_t min,u_int32_t max,u_int32_t spi,int invert)
ipv6/netfilter/ip6t_frag.c renamed from ipv6/netfilter/ip6t_frag.c.old +0 -11
@@ -44,17 +44,6 @@__u32 id; }; -int ipv6_ext_hdr (u8 nexthdr) -{ -return ( (nexthdr ==NEXTHDR_HOP ) || - (nexthdr ==NEXTHDR_ROUTING ) || - (nexthdr ==NEXTHDR_FRAGMENT ) || - (nexthdr ==NEXTHDR_AUTH ) || - (nexthdr ==NEXTHDR_ESP ) || - (nexthdr ==NEXTHDR_NONE ) || - (nexthdr ==NEXTHDR_DEST ) ); -} -/* Returns 1 if the id is matched by the range, 0 otherwise */ static inline int id_match (u_int32_t min,u_int32_t max,u_int32_t id,int invert)
ipv6/netfilter/ip6t_hbh.c renamed from ipv6/netfilter/ip6t_hbh.c.old +0 -11
@@ -29,17 +29,6 @@ #define DEBUGP(format, args...)#endif -int ipv6_ext_hdr (u8 nexthdr) -{ -return ( (nexthdr ==NEXTHDR_HOP ) || - (nexthdr ==NEXTHDR_ROUTING ) || - (nexthdr ==NEXTHDR_FRAGMENT ) || - (nexthdr ==NEXTHDR_AUTH ) || - (nexthdr ==NEXTHDR_ESP ) || - (nexthdr ==NEXTHDR_NONE ) || - (nexthdr ==NEXTHDR_DEST ) ); -} -/* * (Type & 0xC0) >> 6 * 0 -> ignorable
ipv6/netfilter/ip6t_ipv6header.c renamed from ipv6/netfilter/ip6t_ipv6header.c.old +0 -11
@@ -24,17 +24,6 @@ #define DEBUGP(format, args...)#endif -int ipv6_ext_hdr (u8 nexthdr) -{ -return ( (nexthdr ==NEXTHDR_HOP ) || - (nexthdr ==NEXTHDR_ROUTING ) || - (nexthdr ==NEXTHDR_FRAGMENT ) || - (nexthdr ==NEXTHDR_AUTH ) || - (nexthdr ==NEXTHDR_ESP ) || - (nexthdr ==NEXTHDR_NONE ) || - (nexthdr ==NEXTHDR_DEST ) ); -} - static int ipv6header_match(const struct sk_buff *skb, const struct net_device *in,
ipv6/netfilter/ip6t_rt.c renamed from ipv6/netfilter/ip6t_rt.c.old +0 -11
@@ -21,17 +21,6 @@ #define DEBUGP(format, args...)#endif -int ipv6_ext_hdr (u8 nexthdr) -{ -return ( (nexthdr ==NEXTHDR_HOP ) || - (nexthdr ==NEXTHDR_ROUTING ) || - (nexthdr ==NEXTHDR_FRAGMENT ) || - (nexthdr ==NEXTHDR_AUTH ) || - (nexthdr ==NEXTHDR_ESP ) || - (nexthdr ==NEXTHDR_NONE ) || - (nexthdr ==NEXTHDR_DEST ) ); -} -/* Returns 1 if the id is matched by the range, 0 otherwise */ static inline int segsleft_match (u_int32_t min,u_int32_t max,u_int32_t id,int invert)
Signature · 5 lines
"Other countries of course, bear the same risk. But there's no doubt his
hatred is mainly directed at us. After all this is the guy who tried to
kill my dad."
- George W. Bush Jr, 'President' of Regime of the United States
September 26, 2002 (from a political fundraiser in Huston, Texas)