From af937f61dc895f63d9b1472f95bb1fdea4c03198 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Sat, 9 May 2026 19:57:32 +0200 Subject: [PATCH] defrag: rearrange Frag struct to save 8 bytes Avoid large gaps in the layout. --- src/defrag.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/defrag.h b/src/defrag.h index d118f026f7..eb07fab1fb 100644 --- a/src/defrag.h +++ b/src/defrag.h @@ -47,13 +47,13 @@ typedef struct Frag_ { uint16_t offset; /**< The offset of this fragment, already * multiplied by 8. */ - uint32_t len; /**< The length of this fragment. */ - uint8_t hlen; /**< The length of this fragments IP header. */ uint8_t more_frags:4; /**< More frags? */ uint8_t skip:4; /**< Skip this fragment during re-assembly. */ + uint32_t len; /**< The length of this fragment. */ + uint16_t frag_hdr_offset; /**< Offset in the packet where the frag * header starts. */