netdev-dummy: add appctl netdev-dummy/conn-state command
authorAndy Zhou <azhou@nicira.com>
Thu, 5 Jun 2014 23:01:17 +0000 (16:01 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 6 Apr 2015 18:07:29 +0000 (11:07 -0700)
commitae2c62e59b32c9be4828c2a5e50005bc6f70f45c
tree5cc05fef3d4b65b8372f8cf2d692e4a34ec251e9
parentad5c52ec548c8ee2ace4afe8fd14d7d437485433
netdev-dummy: add appctl netdev-dummy/conn-state command

Using without any parameter, this command list the connection
state of all netdev-dummy devices that are configured to make
active connections.

Optionally, the name of the netdev-dummy device can be supplied
as a parameter.

The states will be displayed as:

"connected": The socket has been connected to the listener.
"disconnected": The socket is not connected.
"unknown":  It is not an active dummy device.

CC: Jarno Rajahalme <jrajahalme@nicira.com>
Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Jarno Rajahalme <jrajahalme@nicira.com>
lib/netdev-dummy.c