flow_format: Do not format "in_port=0".
authorJarno Rajahalme <jrajahalme@nicira.com>
Thu, 26 Mar 2015 22:32:45 +0000 (15:32 -0700)
committerJarno Rajahalme <jrajahalme@nicira.com>
Thu, 26 Mar 2015 22:32:45 +0000 (15:32 -0700)
commite6d9ab56ee1f417e8823a6405d5a085c70fe8982
treee38996e8b42585509c4f826b6ab24b456fb341ad
parent2be9ec263e98138602f0a130923ef85fa6f544fd
flow_format: Do not format "in_port=0".

flow_format() is used mainly for formating the headers of packets
embedded in OpenFlow PACKET_IN messages.  In this case the flow does
not have a valid port number, and printing out "in_port=0" only
confuses the resulting output.  Besides, 0 is not a valid OpenFlow
port number.

Signed-off-by: Jarno Rajahalme <jrajahalme@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
lib/flow.c
tests/ofp-print.at
tests/ofproto-dpif.at
tests/ofproto.at