From: Pablo Neira Ayuso Date: Wed, 30 Oct 2013 12:33:50 +0000 (+0100) Subject: payload: fix ethernet type protocol matching X-Git-Tag: v0.099~56 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b5376f78dc4dc501bca0199c5c37b42541e226f;p=thirdparty%2Fnftables.git payload: fix ethernet type protocol matching This fixes ethernet type protocol matching, which is needed to match network layer information, eg. nft add rule bridge filter input ip protocol icmp counter Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/payload.c b/src/payload.c index 0d2236085..ea0d4e260 100644 --- a/src/payload.c +++ b/src/payload.c @@ -1010,7 +1010,7 @@ const struct datatype ethertype_type = { .type = TYPE_ETHERTYPE, .name = "ethertype", .desc = "Ethernet protocol", - .byteorder = BYTEORDER_HOST_ENDIAN, + .byteorder = BYTEORDER_BIG_ENDIAN, .size = 2 * BITS_PER_BYTE, .basetype = &integer_type, .basefmt = "0x%.4Zx",