Skip to contentSkip to conversation

payload: fix ethernet type protocol matching

PATCH New Pablo Neira Ayuso 1 participant 1 message Nov 3, 2013 netfilter

lore
Share & tools
lore

Pablo Neira Ayuso

author maintainer
#0 lore raw

PATCH 1/1 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

---
 src/payload.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/payload.c +1 -1
index 0d22360..ea0d4e2 100644
@@ -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",
Signature · 1 line
1.7.10.4