linealize: generate unary expression with the appropiate operation
PATCH 1/1 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 <[email protected]>
--- src/netlink_linearize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
src/netlink_linearize.c +1 -1
@@ -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); }
Signature · 1 line
1.7.10.4
Quoted 2 lines · Alvaro Neira Ayuso
If we add a unary expression which the operation is ntoh, we use hton. This looks like a typo.
Applied, thanks.