mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-06 12:45:13 +02:00
xt_ECHO: handle fragments
Since everything is just echoed back verbatim without modification, supporting fragments seems easy.
This commit is contained in:
@@ -156,8 +156,8 @@ echo_tg4(struct sk_buff *oldskb, const struct xt_action_param *par)
|
|||||||
newip->version = oldip->version;
|
newip->version = oldip->version;
|
||||||
newip->ihl = sizeof(*newip) / 4;
|
newip->ihl = sizeof(*newip) / 4;
|
||||||
newip->tos = oldip->tos;
|
newip->tos = oldip->tos;
|
||||||
newip->id = 0;
|
newip->id = oldip->id;
|
||||||
newip->frag_off = htons(IP_DF);
|
newip->frag_off = 0;
|
||||||
newip->protocol = oldip->protocol;
|
newip->protocol = oldip->protocol;
|
||||||
newip->check = 0;
|
newip->check = 0;
|
||||||
newip->saddr = oldip->daddr;
|
newip->saddr = oldip->daddr;
|
||||||
|
Reference in New Issue
Block a user