From 444ac7bee1452cdf59ec44400db210423052d109 Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Wed, 5 Jul 2017 00:54:27 +0200 Subject: rt: add path mtu support Only use case is to allow similar behaviour to iptables TCPMSS --clamp-mss-to-pmtu, by combining this with exthdr statement: tcp option maxseg size set rt mtu Signed-off-by: Florian Westphal Acked-by: Pablo Neira Ayuso --- src/rt.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/rt.c') diff --git a/src/rt.c b/src/rt.c index cd2d5a4e..91be5a11 100644 --- a/src/rt.c +++ b/src/rt.c @@ -73,6 +73,11 @@ static const struct rt_template rt_templates[] = { 16 * BITS_PER_BYTE, BYTEORDER_BIG_ENDIAN, true), + [NFT_RT_TCPMSS] = RT_TEMPLATE("mtu", + &integer_type, + 2 * BITS_PER_BYTE, + BYTEORDER_HOST_ENDIAN, + false), }; static void rt_expr_print(const struct expr *expr, struct output_ctx *octx) -- cgit v1.2.3