From: Ben Pfaff Date: Thu, 5 Mar 2009 01:42:35 +0000 (-0800) Subject: ofp-print: Use ntohs() for 16-bit field, not ntohl(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c9a58ea269072df4baf7963caabba4a2065a3f1;p=openvswitch ofp-print: Use ntohs() for 16-bit field, not ntohl(). Noticed by Natasha. --- 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)); } }