From: Ben Pfaff Date: Thu, 26 Jan 2012 00:58:08 +0000 (-0800) Subject: ofproto: Fix typo in handle_nxt_set_packet_in_format(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a15f0eeb9cf4b09403bed3c361a5150dbff16fc3;p=openvswitch ofproto: Fix typo in handle_nxt_set_packet_in_format(). NXFF_OPENFLOW10 and NXPIF_OPENFLOW10 have the same value (both zero), so this doesn't fix an actual bug. Signed-off-by: Ben Pfaff --- diff --git a/ofproto/ofproto.c b/ofproto/ofproto.c index 05040261..7fa4eac2 100644 --- a/ofproto/ofproto.c +++ b/ofproto/ofproto.c @@ -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; }