From: Alvaro Neira Date: Mon, 18 Aug 2014 21:00:12 +0000 (+0200) Subject: linealize: generate unary expression with the appropiate operation X-Git-Tag: v0.4~112 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ef2c71e9772a8bd1be7ddf376e1be26c3334110;p=thirdparty%2Fnftables.git linealize: generate unary expression with the appropiate operation If we add a unary expression which the operation is ntoh, we use hton. This looks like a typo. Signed-off-by: Alvaro Neira Ayuso Signed-off-by: Pablo Neira Ayuso --- diff --git a/src/netlink_linearize.c b/src/netlink_linearize.c index 075e2436..f5ce19c9 100644 --- a/src/netlink_linearize.c +++ b/src/netlink_linearize.c @@ -442,7 +442,7 @@ static enum nft_byteorder_ops netlink_gen_unary_op(enum ops op) case OP_HTON: return NFT_BYTEORDER_HTON; case OP_NTOH: - return NFT_BYTEORDER_HTON; + return NFT_BYTEORDER_NTOH; default: BUG("invalid unary operation %u\n", op); }