@@ -1,7 +1,8 @@
HEAD
====
-
+Fixes:
+- length2, SYSREQ, RAWNAT: fix ipv6 support with Linux 3.5
v1.45 (2012-07-16)
==================
@@ -244,7 +244,7 @@ static unsigned int
rawsnat_tg6(struct sk_buff **pskb, const struct xt_action_param *par)
{
const struct xt_rawnat_tginfo *info = par->targinfo;
- unsigned int l4offset, l4proto;
+ unsigned int l4offset = 0, l4proto;
struct ipv6hdr *iph;
struct in6_addr new_addr;
@@ -265,7 +265,7 @@ static unsigned int
rawdnat_tg6(struct sk_buff **pskb, const struct xt_action_param *par)
{
const struct xt_rawnat_tginfo *info = par->targinfo;
- unsigned int l4offset, l4proto;
+ unsigned int l4offset = 0, l4proto;
struct ipv6hdr *iph;
struct in6_addr new_addr;
@@ -240,7 +240,7 @@ sysrq_tg6(struct sk_buff **pskb, const struct xt_action_param *par)
const struct ipv6hdr *iph;
const struct udphdr *udph;
unsigned short frag_off;
- unsigned int th_off;
+ unsigned int th_off = 0;
uint16_t len;
if (skb_linearize(skb) < 0)
@@ -203,7 +203,7 @@ length2_mt6(const struct sk_buff *skb, struct xt_action_param *par)
const struct xt_length_mtinfo2 *info = par->matchinfo;
const struct ipv6hdr *iph = ipv6_hdr(skb);
unsigned int len = 0, l4proto;
- unsigned int thoff = par->thoff;
+ unsigned int thoff = 0;
bool hit = true;
if (info->flags & XT_LENGTH_LAYER3) {