]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
payload: fix endianess of ARP operation code
authorPablo Neira Ayuso <pablo@netfilter.org>
Sat, 14 Sep 2013 18:37:26 +0000 (20:37 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Sat, 14 Sep 2013 18:41:06 +0000 (20:41 +0200)
So it display compatibility command:

xtables-arp -A INPUT --opcode Reply -j DROP

accordinly:

arp plen 4 arp operation reply counter packets 0 bytes 0 drop

src/payload.c

index bce32fbc850e04aac715ac52fa0c54897794ca2c..0d223608563ed6fc1d919770c9d8214b4db7f2d5 100644 (file)
@@ -912,7 +912,7 @@ static const struct datatype arpop_type = {
        .type           = TYPE_ARPOP,
        .name           = "arp_op",
        .desc           = "ARP operation",
-       .byteorder      = BYTEORDER_HOST_ENDIAN,
+       .byteorder      = BYTEORDER_BIG_ENDIAN,
        .size           = 2 * BITS_PER_BYTE,
        .basetype       = &integer_type,
        .sym_tbl        = &arpop_tbl,