Skip to contentSkip to conversation

linealize: generate unary expression with the appropiate operation

PATCH Applied Alvaro Neira Ayuso 2 participants 2 messages Aug 18, 2014 netfilter

lore
Share & tools
lore
#0 lore raw

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.

---
 src/netlink_linearize.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
src/netlink_linearize.c +1 -1
index 0e1d87c..3e48e9b 100644
@@ -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
maintainer Applied
#1 lore raw
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.