diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-10-30 13:33:50 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2013-11-04 12:35:57 +0100 |
commit | 2b5376f78dc4dc501bca0199c5c37b42541e226f (patch) | |
tree | ed0952da5e9dcc8611c256db88550c97cec39d29 /src | |
parent | b8b1b43234bd7943a076899bcf2abd8cdd06d7f5 (diff) |
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 <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/payload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/payload.c b/src/payload.c index 0d223608..ea0d4e26 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", |