ofp-print: Use ntohs() for 16-bit field, not ntohl().
authorBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 01:42:35 +0000 (17:42 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 5 Mar 2009 01:43:01 +0000 (17:43 -0800)
Noticed by Natasha.

lib/ofp-print.c

index d1adae4a11fc23895ef3b6ff3ba0f04fb5142292..a036db5d9cd2d8bf358fcb58c238c81df1ce4637 100644 (file)
@@ -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));
     }
 }