Do not listen unless configured with cli-listen. 66/666/2
authorEd Warnicke <[email protected]>
Sat, 2 Apr 2016 03:43:37 +0000 (22:43 -0500)
committerGerrit Code Review <[email protected]>
Wed, 6 Apr 2016 16:03:33 +0000 (16:03 +0000)
commita25bd1cae44e3a09584366c161cbc6beebd3d2c4
treeebbb3091083c383df95644dfd98028d391e41f2d
parentdf2b0fd80281886cbfbe6c699f968b439cc3cd5f
Do not listen unless configured with cli-listen.

I noticed while mucking about with lsof that vpp
was listening on port 5000.

telnet 0 5000 revealed that it was listening for
the cli on that port.

Digging into the code, it turns out that if you
do not configure cli-listen (Example:

unix {
     cli-listen localhost:5002
}
)

Then vpp is listening on the first available port
starting at port 5000 anyway.  This is a simple
patch to *not* listen unless configured to do so.

Change-Id: Id7f6f4d69e0a1642d2767849a90b21f38f21ecaa
Signed-off-by: Ed Warnicke <[email protected]>
vlib/vlib/unix/cli.c