summaryrefslogtreecommitdiff
path: root/tests/ofproto.at
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-12-08 14:21:18 -0800
committerBen Pfaff <blp@ovn.org>2017-12-08 14:21:19 -0800
commit14347f3e8276e555eeffb03e9e07564f1634f0db (patch)
tree394d3192e0d5fea922fc20c3750eb3147366da36 /tests/ofproto.at
parent1cae21eece9f83d6540b2d28c0f6851303471c6c (diff)
downloadopenvswitch-14347f3e8276e555eeffb03e9e07564f1634f0db.tar.gz
stream-unix: Give accepted sockets distinct names for log messages.
At least on Linux, when process A connects to process B over a Unix domain socket, unless process A bound its socket to a name before it made the connection, process B gets an empty peer name. Until now, OVS has just reported the name of the connection as "unix". This is not meaningful, of course. I do not know of a good general solution to this problem, but this commit attempts a step in the right direction by at least giving each connection of this kind a number: "unix#1", "unix#2", and so on. That way, in log messages one can at least see which messages are related to a particular connection. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'tests/ofproto.at')
-rw-r--r--tests/ofproto.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ofproto.at b/tests/ofproto.at
index 17ede5d4a..c19a3d10d 100644
--- a/tests/ofproto.at
+++ b/tests/ofproto.at
@@ -5219,7 +5219,7 @@ vconn|DBG|unix: sent (Success): NXST_FLOW reply:
in_port=2,dl_src=00:66:77:88:99:aa actions=drop
])
-AT_CHECK([grep " flow_mods in the last " ovs-vswitchd.log | sed -e 's/^.*connmgr|INFO|//'], [0], [dnl
+AT_CHECK([grep " flow_mods in the last " ovs-vswitchd.log | sed -e 's/^.*connmgr|INFO|//' | vconn_sub], [0], [dnl
br0<->unix: 1 flow_mods in the last 0 s (1 deletes)
br0<->unix: 9 flow_mods in the last 0 s (7 adds, 2 deletes)
br0<->unix: 2 flow_mods in the last 0 s (2 modifications)