From 3c9a58ea269072df4baf7963caabba4a2065a3f1 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Wed, 4 Mar 2009 17:42:35 -0800 Subject: [PATCH] ofp-print: Use ntohs() for 16-bit field, not ntohl(). Noticed by Natasha. --- lib/ofp-print.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ofp-print.c b/lib/ofp-print.c index d1adae4a..a036db5d 100644 --- a/lib/ofp-print.c +++ b/lib/ofp-print.c @@ -215,7 +215,7 @@ ofp_print_nx_action(struct ds *string, const struct nx_action_header *nah) } } else { ds_put_format(string, "***unknown Nicira action:%d***\n", - ntohl(nah->subtype)); + ntohs(nah->subtype)); } } -- 2.30.2