ofproto: Fix typo in handle_nxt_set_packet_in_format().
authorBen Pfaff <blp@nicira.com>
Thu, 26 Jan 2012 00:58:08 +0000 (16:58 -0800)
committerBen Pfaff <blp@nicira.com>
Fri, 27 Jan 2012 00:06:13 +0000 (16:06 -0800)
NXFF_OPENFLOW10 and NXPIF_OPENFLOW10 have the same value (both zero), so
this doesn't fix an actual bug.

Signed-off-by: Ben Pfaff <blp@nicira.com>
ofproto/ofproto.c

index 0504026..7fa4eac 100644 (file)
@@ -2880,7 +2880,7 @@ handle_nxt_set_packet_in_format(struct ofconn *ofconn,
 
     msg = (const struct nx_set_packet_in_format *) oh;
     format = ntohl(msg->format);
-    if (format != NXFF_OPENFLOW10 && format != NXPIF_NXM) {
+    if (format != NXPIF_OPENFLOW10 && format != NXPIF_NXM) {
         return OFPERR_OFPBRC_EPERM;
     }