From: Florian Westphal Date: Mon, 4 Jan 2016 19:53:52 +0000 (+0100) Subject: src: ct: make ct l3proto work X-Git-Tag: v0.6~162 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d81dd1fdf13571ee95d4c1c3cde03b5774a0084;p=thirdparty%2Fnftables.git src: ct: make ct l3proto work ct l3proto original == ipv6 :1:56-59: Error: Can't parse symbolic invalid expressions Its just the nf protocol number -- no dependencies. Just set right type. Signed-off-by: Florian Westphal --- diff --git a/src/ct.c b/src/ct.c index 07e7077b0..515e3ebfa 100644 --- a/src/ct.c +++ b/src/ct.c @@ -184,8 +184,8 @@ static const struct ct_template ct_templates[] = { [NFT_CT_HELPER] = CT_TEMPLATE("helper", &string_type, BYTEORDER_HOST_ENDIAN, NF_CT_HELPER_NAME_LEN * BITS_PER_BYTE), - [NFT_CT_L3PROTOCOL] = CT_TEMPLATE("l3proto", &invalid_type, - BYTEORDER_INVALID, + [NFT_CT_L3PROTOCOL] = CT_TEMPLATE("l3proto", &nfproto_type, + BYTEORDER_HOST_ENDIAN, BITS_PER_BYTE), [NFT_CT_SRC] = CT_TEMPLATE("saddr", &invalid_type, BYTEORDER_BIG_ENDIAN, 0),