ofp-util: Use 32bit port for Open Flow 1.1 & 1.2 Port Mod Request
authorSimon Horman <horms@verge.net.au>
Thu, 9 Aug 2012 08:49:23 +0000 (17:49 +0900)
committerBen Pfaff <blp@nicira.com>
Thu, 9 Aug 2012 23:27:54 +0000 (16:27 -0700)
commit026a517999746f5578d8a3031e3df411b37096d2
treeec731efce4ab6eb1ccbbeeefe56141405f9832bb
parent49635519bae2c14e44744825c907ccee9216bf90
ofp-util: Use 32bit port for Open Flow 1.1 & 1.2 Port Mod Request

When encoding Open Flow 1.1 & 1.2 Port Mod Request messages
the port number should be converted to 32bits using
ofputil_port_to_ofp11() rather than htonl(). This ensures
that port numbers in the reserved range are translated correctly.

Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Ben Pfaff <blp@nicira.com>
lib/ofp-util.c