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;
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;
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)
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;
+ /* par->thoff would only set if ip6tables -p was used; so just use 0 */
+ unsigned int thoff = 0;
bool hit = true;
if (info->flags & XT_LENGTH_LAYER3) {