rfofmsg.cc: Refactor ofp_mask conversion

Signed-off-by: Joe Stringer <joestringernz@gmail.com>
rfofmsg.cc: Refactor set_command

Signed-off-by: Joe Stringer <joestringernz@gmail.com>