Age | Commit message (Collapse) | Author | Files | Lines |
|
The tprintf module already uses a static variable named 'buffer', thus
rename the parameter to avoid a name clash. Found by compiling with
-Wshadow.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
The entire packet is zeroed using memset() three lines above, thus there
is no need to set icmp->code and icmp->checksum to 0 explicitely again.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Jon reported that the setup via netlink of a raw 802.11 mon
device fails with:
root~/gencfg# trafgen --in beacon.cfg --rfraw --out wlan0
Waiting for netlink ack failed!
Let us only wait for it, if really needed.
Reported-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Add the index files generated by cscope and ctags to .gitignore.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
The version() function was missed in the previous commit 785fe152
("trafgen: Add __noreturn attribute to exiting functions"), so add
__noreturn to it now.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Add the __noreturn attribute to all functions which wont return
but call die() themselves to exit().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Add the __noreturn attribute to all functions which wont return
but call die() themselves to exit().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Add the __noreturn attribute to all functions which wont return
but call die() themselves to exit().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Add the __noreturn attribute to all functions which wont return
but call die() themselves to exit().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Add the __noreturn attribute to all functions which wont return
but call die() themselves to exit().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Add the __noreturn attribute to all functions which wont return but call
die() themselves to exit().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Add the __noreturn attribute to all functions which wont return but call
exit() (or die() respectively) themselves.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
This can be used to mark functions which will call exit() by themselves.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
We need to break if we get NULL from pkt_pull() but the actual check was
inverted. This was discovered by the coverity scanner and missed in
commit b76adfd1 ("dissector: igmp: Fix erroneous null pointer check").
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Mention the fact that curvetun exits after printing either the help of
the version information.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Mention the fact that astraceroute exits after printing either the help
of the version information.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Make the wording consistent with the other man pages.
This was probably messed up by my previous commit which was not properly
split.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Make the wording consistent with the other man pages.
This was probably messed up by my previous commit which was not properly
split.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Add Stephen Wadeley for his man page contributions.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Conflicts resolved by hand:
bpfc.8
ifpps.8
netsniff-ng.8
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Signed-off-by: Stephen Wadeley <swadeley@redhat.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Replace "on default" by "by default", make it a bit more clear what the
seed in the -E/--seed option is for and mention exit after display of
information on --version and --help.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Add complete description of the commandline option -p/--cpp to the
manpage.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Fix wording in some places, make some sentences a bit shorter and
replace "on default" by "by default".
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Signed-off-by: Stephen Wadeley <swadeley@redhat.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Signed-off-by: Stephen Wadeley <swadeley@redhat.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Signed-off-by: Stephen Wadeley <swadeley@redhat.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Signed-off-by: Stephen Wadeley <swadeley@redhat.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Signed-off-by: Stephen Wadeley <swadeley@redhat.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Some edits to the ifpps man page.
Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Add the mausezahn man-page that is modified on top of the original
man-page by Herbert Haas.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Now that we have some man-pages, let them be installed via normal
``make install'' call.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
At least mention their existance in the INSTALL file.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Remove some variables that are unused, but set. Also reorder and
comment some other sections.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Some fixups in flowtop's man page.
Signed-off-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
mausezahn dependencies and build options were not yet documented.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
After some back and forth, we decided that it is easier to maintain
mausezahn in a staging directory until it is fully reworked and
cleaned up to be ready to be fully integrated. This way, it is better
than having it in a separate branch, and we can also accept patches
from outside more easily. Also, while at it, fix up some function
mismatches with libcli.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Hideo Hattori wrote a set of auto completion scripts for zsh that
support netsniff-ng tools. Big thanks for that! Follow-up commits
still need to address updated command-line options.
Signed-off-by: Hideo Hattori <hhatto.jp@gmail.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
Break out the timestamping part of the ring.h file, since it's not
directly related to the {t,r}x_ring. Also inlining doesn't make
sense here.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
When do not detect any shellcode, make sure we return the original
string only.
Reported-by: Jon Schipp <jonschipp@gmail.com>
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
This is a revised, simple syntax highlighting file for the bpf language.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|
|
The return values is always 0 and it is never checked anyhow, so make
the function void.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
We need to break if we get NULL from pkt_pull() but the actual check was
inverted. This was discovered by the coverity scanner.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
This way the coverity scanner will no longer complain about dereference
before NULL checks right before xfree().
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
In certain error cases, the file/socket descriptors are not closed
in geoip_get_database(). This was discovered by the coverity scanner.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Check return value of pkt_pull before dereferencing it (even though we
check the packet length before and pkt_pull _should_ never return NULL).
This was discovered by the coverity scanner.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
The coverity scanner found the macro used as argument to sizeof
suspicious. Use sizeof the destination buffer instead.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Check return value of pkt_pull before dereferencing it. This was
discovered by the coverity scanner.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Remove two trailing whitespaces on emtpy lines.
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
|
|
Allow to define custom compile flags, e.g. ...
make CFLAGS="-O2 -Wall"
... and also allow to overwrite ccache variable:
make CCACHE= all
Also do some minor fixes when built with -O2 -Wall.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
|