mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 20:55:13 +02:00
xt_ECHO: ensure IP header length is set
This commit is contained in:
@@ -76,6 +76,7 @@ echo_tg6(struct sk_buff *oldskb, const struct xt_action_param *par)
|
||||
payload = skb_header_pointer(oldskb, par->thoff +
|
||||
sizeof(*oldudp), data_len, NULL);
|
||||
memcpy(skb_put(newskb, data_len), payload, data_len);
|
||||
newip->payload_len = htons(newskb->len);
|
||||
|
||||
#if 0
|
||||
/*
|
||||
@@ -173,6 +174,7 @@ echo_tg4(struct sk_buff *oldskb, const struct xt_action_param *par)
|
||||
payload = skb_header_pointer(oldskb, par->thoff +
|
||||
sizeof(*oldudp), data_len, NULL);
|
||||
memcpy(skb_put(newskb, data_len), payload, data_len);
|
||||
newip->tot_len = htons(newskb->len);
|
||||
|
||||
#if 0
|
||||
/*
|
||||
|
Reference in New Issue
Block a user