From: Pablo Neira Ayuso Date: Sat, 14 Sep 2013 18:37:26 +0000 (+0200) Subject: payload: fix endianess of ARP operation code X-Git-Tag: v0.099~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63d0b33edb5daa98f578bf9f54cfcd7031e1d16e;p=thirdparty%2Fnftables.git payload: fix endianess of ARP operation code 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 --- diff --git a/src/payload.c b/src/payload.c index bce32fbc..0d223608 100644 --- a/src/payload.c +++ b/src/payload.c @@ -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,