| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
that it can be called up to 4 times in a given "printf()".
|
|
|
|
|
|
|
|
|
|
|
|
| |
- pass on ident string to ascii_print()
- pave the way for eliminating print_unknown_data()
and subsequent hex_print() replacement
- clean up the default_print() related functions:
- call always into print_ascii() b/c just hexdump data
is uninteresting; hex-offsets plus ascii representation
is what most people are looking for
- remove default_print_unaligned() as it is now obsolete
|
|
|
|
|
|
|
|
|
|
| |
appropriately, and that GNUmakefile and the MSVC++ project file define
it apppriately, as we do with libpcap, rather than defining it in
"interface.h".
Undo the rcsid-shuffling and addition of extra #includes, as we no
longer need to arrange that "interface.h" be included before using _U_
in an RCS ID or copyright.
|
|
|
|
|
|
|
|
|
|
|
| |
use "_U_" in the definitions of "rcsid[]", to eliminate
complaints about those variables being unused;
move the definitions after the include of "interface.h", or add
an include of "interface.h", so that "_U_" is defined.
Include "config.h" before including "tcpdump-stdinc.h" in
"missing/datalinks.c".
|
|
|
|
|
|
|
|
|
|
|
| |
use "_U_" in the definitions of "rcsid[]", to eliminate
complaints about those variables being unused;
move the definitions after the include of "interface.h", or add
an include of "interface.h", so that "_U_" is defined.
Include "config.h" before including "tcpdump-stdinc.h" in
"missing/datalinks.c".
|
| |
|
|
|
|
|
|
|
| |
for prefixes at bitmasks[32] (the last element of a 33-element array),
not bitmasks[33] (one past the last element of that array).
Clean up white space.
|
|
|
|
|
| |
indication if the last byte of the counted string was the last
byte captured.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
open the file containing a filter expression in binary mode, so
that we get all the characters that "fstat()" claims are there,
rather than having CRs stripped out (causing us to report an
error because the "read()" call gives us less data than
"fstat()" claims was in the file);
close the file descriptor once we're finished reading the file;
strip out everything on a line starting with "#", so that "#"
can be used for to-end-of-line comments in the file.
Update his address in the CREDITS file.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
this is useful for scanning bitfields
the input is a tokenlist and a testvalue
the function will parse the tokenlist for each single bitmatch
of the testvalue;
if it finds a a match it will write teh tokenstring into a buffer
and place a comma to seperate the values
if there is no match it will format the buffer according to the format string;
i saw many private instances of similar bitscanning functions;
lets use bittok2str() from now on;
|
| |
|
|
|
|
|
| |
are included by <tcpdump-stdinc.h>, so we don't have to include them
explicitly; <errno.h> isn't needed by print routines).
|
|
|
|
| |
compilers.
|
| |
|
|
|
|
| |
print_unknown_data{} supports identation;
|
| |
|
|
|
|
|
|
|
| |
from the argument, rather than the argument itself, when testing whether
it should be printed or not (the argument might well be a sign-extended
version of an 8-bit character, in which case it's < 0x80 as it's
negative, but it can't be safely handed to "isprint()").
|
| |
|
|
|
|
| |
array of strings instead of a list of value/string pairs.
|
| |
|
|
|
|
| |
Check for malloc failure in read_infile()
|
| |
|
| |
|
| |
|
|
|
|
| |
<gvanem@eunet.no>
|
|
|
|
|
| |
move safeputchar() and safeputs() into util.c for better code sharing.
some style.
|
|
|
|
| |
From Francisco Matias Cuenca-Acuna <mcuenca@george.rutgers.edu>
|
|
|
|
|
| |
there seem to be couple of unsafe use of strcat and strcpy - we should
bring in strl{cat,cpy}.
|
| |
|
|
|
|
| |
Cisco Auto-RP support.
|
| |
|
| |
|
|
|