From: Justin Pettit Date: Mon, 26 Oct 2009 19:02:02 +0000 (-0700) Subject: flow: Differentiate between "port" when printing flows X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=inline;h=9052790aac60c01195c170d0ed2c7159e1343af7;p=openvswitch flow: Differentiate between "port" when printing flows When printing a flow, there were two references to "port": one the interface the packet arrived on and the other the L4 ports. This could be a bit confusing to new users looking at the output of a command such as "ovs-ofctl dump-flows". This commit changes the incoming interface field from "port" to "in_port". --- diff --git a/lib/flow.c b/lib/flow.c index c1f6240f..7d4a1bd4 100644 --- a/lib/flow.c +++ b/lib/flow.c @@ -317,7 +317,7 @@ flow_to_string(const flow_t *flow) void flow_format(struct ds *ds, const flow_t *flow) { - ds_put_format(ds, "port%04x:vlan%d mac"ETH_ADDR_FMT"->"ETH_ADDR_FMT" " + ds_put_format(ds, "in_port%04x:vlan%d mac"ETH_ADDR_FMT"->"ETH_ADDR_FMT" " "type%04x proto%"PRId8" ip"IP_FMT"->"IP_FMT" port%d->%d", flow->in_port, ntohs(flow->dl_vlan), ETH_ADDR_ARGS(flow->dl_src), ETH_ADDR_ARGS(flow->dl_dst),