From 69f3f21a323693c452b5ded061b16fb73b232cb9 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 20 May 2016 10:48:00 +0200 Subject: [PATCH] xt_ECHO: handle fragments Since everything is just echoed back verbatim without modification, supporting fragments seems easy. --- extensions/xt_ECHO.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/xt_ECHO.c b/extensions/xt_ECHO.c index f6d2c69..2f1a5eb 100644 --- a/extensions/xt_ECHO.c +++ b/extensions/xt_ECHO.c @@ -156,8 +156,8 @@ echo_tg4(struct sk_buff *oldskb, const struct xt_action_param *par) newip->version = oldip->version; newip->ihl = sizeof(*newip) / 4; newip->tos = oldip->tos; - newip->id = 0; - newip->frag_off = htons(IP_DF); + newip->id = oldip->id; + newip->frag_off = 0; newip->protocol = oldip->protocol; newip->check = 0; newip->saddr = oldip->daddr;