void *payload;
/* This allows us to do the copy operation in fewer lines of code. */
- if (skb_linearize(oldskb) < 0)
+ if (skb_linearize(*poldskb) < 0)
return NF_DROP;
oldip = ip_hdr(oldskb);
dst_hold(oldskb->dst);
newskb->dst = oldskb->dst;
- if (ip_route_me_harder(newskb, addr_type) < 0)
+ if (ip_route_me_harder(&newskb, addr_type) < 0)
goto free_nskb;
newip->ttl = dst_metric(newskb->dst, RTAX_HOPLIMIT);
if (newskb->len > dst_mtu(newskb->dst))
goto free_nskb;
- nf_ct_attach(newskb, oldskb);
+ nf_ct_attach(newskb, *poldskb);
ip_local_out(newskb);
return NF_DROP;
module_init(echo_tg_init);
module_exit(echo_tg_exit);
-MODULE_AUTHOR("Jan Engelhardt <jengelh@computergmbh.de>");
+MODULE_AUTHOR("Jan Engelhardt <jengelh@medozas.de>");
MODULE_DESCRIPTION("Xtables: ECHO diagnosis target");
MODULE_LICENSE("GPL");
MODULE_ALIAS("ipt_ECHO");