tcp builtin_client: bug correction and short_help 68/6168/3
authorClement Durand <clement.durand@polytechnique.edu>
Wed, 12 Apr 2017 14:33:55 +0000 (16:33 +0200)
committerFlorin Coras <florin.coras@gmail.com>
Thu, 13 Apr 2017 21:41:46 +0000 (21:41 +0000)
commit0f7d2ff58a63fdc671c1c0954ffe7c6ff0501daa
tree167be359a31731d8a0ae5a86e672f2a7c512b563
parenta0558307187ef2317f31e3e876a1a5e1faa2541c
tcp builtin_client: bug correction and short_help

The missing call to `vnet_session_enable_disable' would cause segfaults
because of an uninitialized session pointer. Just as in the builtin
server the session needs to be enabled for the client.

The `short_help' of the CLI command was also populated with the
arguments that are accepted in the parsing function
`test_tcp_clients_command_fn'.

Change-Id: I88c16efa80597dd19b406e8cf1c87aec1ec73573
Signed-off-by: Clement Durand <clement.durand@polytechnique.edu>
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
src/vnet/tcp/builtin_client.c