mausezahn: provide listen-addr option to configuration file
commit815dcd255ea9da8b23e8e7c839545d5d41eee336
authorJon Schipp <jonschipp@gmail.com>
Mon, 4 Aug 2014 20:39:13 +0000 (4 20:39 +0000)
committerTobias Klauser <tklauser@distanz.ch>
Tue, 5 Aug 2014 06:55:33 +0000 (5 08:55 +0200)
tree589fce4d2be463ee759692bfcab155c947bf5845
parenteb9d3eeea59be2618598ada24a1f24deaae57c3d
mausezahn: provide listen-addr option to configuration file

Specify the listen-addr for the CLI in /etc/netsniff-ng/mausezahn.conf
and remove the message, "mz: device not given, will use eth0" since
we're listening by IP, rather than interface now, and this shows continues
to show.

$ grep listen-addr /etc/netsniff-ng/mausezahn.conf
listen-addr = 127.0.0.1

$ mausezahn -V -x

 mz: device eth0 got assigned 10.0.2.15 and is a possible candidate.
 mz: device lo got assigned 127.0.0.1 (loopback)
Opening config file /etc/netsniff-ng/mausezahn.conf...
...
Mausezahn accepts incoming Telnet connections on 127.0.0.1:25542.

Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
mausezahn.8
staging/cli.c
staging/mausezahn.c