mausezahn.8: minor edits to improve format

Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
mausezahn: bind to IP address in interactive mode

Adds new option ``-l'' that can be used to set mausezahn's
listen address to bind to an IP of choice. e.g.

mausezahn -l 127.0.0.1 -x

Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
mausezahn: Increase buffer size for listen address string

Commit 2de653340c ("mausezahn: bind to IP address in interactive mode")
introduced mz_listen_addr of size 15 to hold the IP address to bind to.
Since an address can be maximum 15 characters long, this doesn't account
for the terminating '\0'. Fix this by increasing the buffer size to 16.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
mausezahn: change configuration file name to mausezahn.conf

Commit 134a7beb7ab ("mausezahn: re-work configuration file") changed
mausezahn to look for the configuration file in /etc/netsniff-ng. The
filename was intended to be mausezahn.conf not mausezahn.cfg to fit with
the other *.conf file extensions in /etc/netsniff-ng, so change it now.

Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch> [commit msg edited]
mausezahn: cli.h: increase buffer size

Tobias pointed out and fixed in commit 9ef1dd15551f ("mausezahn:
Increase buffer size for listen address string") that the buffer isn't
log enough to hold the null terminator character. The declaration of the
buffer in cli.h was missed though.

Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch> [commit msg edited]
man: mausezahn: document configuration file options

Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
mausezahn: provide port option to configuration file

Specify the port for the CLI in /etc/netsniff-ng/mausezahn.conf like so:

$ grep port /etc/netsniff-ng/mausezahn.conf
port = 65000

$ mausezahn -V -x -l 127.0.0.1

Mausezahn 0.40 - (C) 2007-2010 by Herbert Haas - http://www.perihel.at/sec/mz/
Use at your own risk and responsibility!
-- Verbose mode --

...
Opening config file /etc/netsniff-ng/mausezahn.conf...
...
Mausezahn accepts incoming Telnet connections on 127.0.0.1:65000.

Signed-off-by: Jon Schipp <jonschipp@gmail.com>
[tklauser: Fixed whitespace issues for patch to apply cleanly]
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
man: mausezahn: document rest of available config file options

This documents two more configuration file options that can be used.
One, automops, is in the development phase (not compiled by default),
and the other one, management-only, is usable. It prevents a user from
using a network interface to pass data traffic with the intention that
the interface is used for machine managment (remote control).

$ cat /etc/netsniff-ng/mausezahn.conf
user = mzadmin
password = better-password
management-only = eth0
automops = /path/to/an/automops-file.xml

Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
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>
dissectors: Use __packed macro instead of open-coding it

Consistently vse the __packed macro defined in built_in.h instead of
__attribute__((packed)) in all dissectors (and the entire code base for
that matter).

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
AUTHORS: Add Jon Schipp to major contributors list

Github shows 33 commits for me:
https://github.com/netsniff-ng/netsniff-ng/graphs/contributors

$ git shortlog | grep -i jon
Jon Schipp (29):
jonschipp (1):

Not sure what the difference is here, but this one will make 31 based
on git shortlog (I hope that's not cheating) :) Otherwise I can wait.

And I believe I have a few commits from the old history (is this still
up somewhere?). I think it used to be on the cryptoism site.

Signed-off-by: Jon Schipp <jschipp@illinois.edu>
Acked-by: Daniel Borkmann <borkmann@iogearbox.net>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
netsniff-ng: Add command line option to disable hardware time stamping

Allow to disable hardware time stamping using the command line switch
(-N/--no-hwtimestamp). This might be useful in situations where hardware
time stamps are skewed somehow.

Reference: #129
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>