From 9052790aac60c01195c170d0ed2c7159e1343af7 Mon Sep 17 00:00:00 2001 From: Justin Pettit Date: Mon, 26 Oct 2009 12:02:02 -0700 Subject: [PATCH] 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". --- lib/flow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), -- 2.30.2