diff mbox series

[iptables,12/13] extensions: frag: Add comment to clarify xlate callback

Message ID 20221123164350.10502-13-phil@nwl.cc
State Accepted
Delegated to: Pablo Neira
Headers show
Series Extensions: Review xlate callbacks | expand

Commit Message

Phil Sutter Nov. 23, 2022, 4:43 p.m. UTC
Matching on fragmentation header length is ineffective in kernel, xlate
callback correctly ignores it. Add a comment as a hint for reviewers.

Signed-off-by: Phil Sutter <phil@nwl.cc>
---
 extensions/libip6t_frag.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/extensions/libip6t_frag.c b/extensions/libip6t_frag.c
index 3842496e56a55..72a43153c53dc 100644
--- a/extensions/libip6t_frag.c
+++ b/extensions/libip6t_frag.c
@@ -193,6 +193,8 @@  static int frag_xlate(struct xt_xlate *xl,
 		space = " ";
 	}
 
+	/* ignore ineffective IP6T_FRAG_LEN bit */
+
 	if (fraginfo->flags & IP6T_FRAG_RES) {
 		xt_xlate_add(xl, "%sfrag reserved 1", space);
 		space = " ";