summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Rename 'tcpdump-stdinc.h' to 'netdissect-stdinc.h'Francois-Xavier Le Bail2015-09-10174-181/+181
| | | | Get the full log via: git log --follow netdissect-stdinc.h
* '-pedantic' option is supported by Travis, '-Wpedantic' is notFrancois-Xavier Le Bail2015-09-092-5/+5
|
* Compile with '-Wold-style-definition' in devel modeFrancois-Xavier Le Bail2015-09-092-0/+33
|
* Fix incorrect detection of '-Wstrict-prototypes' optionFrancois-Xavier Le Bail2015-09-092-12/+79
| | | | | | | | | | | | | Revert "Simplify AC_LBL_CHECK_COMPILER_OPT a bit." (commit 43e88cd5b8e9d9d643bbad585743123492452041) The problem shows itself because 'configure' displays "checking whether the compiler supports the -Wstrict-prototypes option... no" even if '-Wstrict-prototypes' option is supported. Moreover: Update configure accordingly. Fix a trailing space.
* Fix warnings as "old-style function definition"Francois-Xavier Le Bail2015-09-091-5/+2
|
* Update a ndo flag nameFrancois-Xavier Le Bail2015-09-093-5/+5
| | | | | | Even if frontend/backend separation is ongoing, keep coherence between option name and flag name at the moment. Option name is 'm', thus s/ndo_sflag/ndo_mflag/.
* Update a commentFrancois-Xavier Le Bail2015-09-081-2/+2
|
* Get rid of "tcpdump" in some libnetdissect codesFrancois-Xavier Le Bail2015-09-081-3/+3
|
* Fix a commentFrancois-Xavier Le Bail2015-09-081-1/+1
| | | | | Moreover: s/tcpdump/netdissect/
* Fix a typoFrancois-Xavier Le Bail2015-09-081-1/+1
|
* Update tcpdump summary commentFrancois-Xavier Le Bail2015-09-081-1/+1
|
* Get rid of "tcpdump" in some libnetdissect codesFrancois-Xavier Le Bail2015-09-085-29/+20
|
* Print program_name instead of "tcpdump"Francois-Xavier Le Bail2015-09-081-11/+12
| | | | | Moreover: Fix indent
* Remove useless includeFrancois-Xavier Le Bail2015-09-081-2/+0
|
* Remove obsolete commentFrancois-Xavier Le Bail2015-09-081-2/+0
|
* "tcpdump" should not be used in any libnetdissect code.Guy Harris2015-09-081-3/+3
| | | | | Libnetdissect could be used by programs not named "tcpdump". Rename "tcpdump_printf()" to "ndo_printf()".
* Remove no longer used option 'R'Francois-Xavier Le Bail2015-09-083-15/+3
|
* Add program_name field in the netdissect_options structureFrancois-Xavier Le Bail2015-09-073-9/+13
| | | | | | | | A program that use the library should set it. Done for tcpdump. ndo_error() and ndo_warning() print now 'ndo->program_name'. Moreover: Fix indent
* Remove obsolete commentsFrancois-Xavier Le Bail2015-09-0722-22/+22
|
* Fix a commentFrancois-Xavier Le Bail2015-09-061-1/+1
|
* Rename cstr[] to istr[] like invalid stringFrancois-Xavier Le Bail2015-09-067-47/+48
| | | | | | Moreover: Hamonise the output for error messages Add istr[] in print-babel.c
* DHCPv6: Update Status Codes with RFCs/IANA namesFrancois-Xavier Le Bail2015-09-061-11/+11
|
* Use the word 'invalid' for 'malformed' or 'corrupted' packetsFrancois-Xavier Le Bail2015-09-0617-182/+182
| | | | | | An invalid packet could be: 1) built malformed originally by the sender or a fuzz tester, 2) became corrupted in transit.
* Printers must include 'netdissect.h', not 'interface.h'Francois-Xavier Le Bail2015-09-05138-138/+138
|
* Functions in libnetdissect must use ndo_error() functionFrancois-Xavier Le Bail2015-09-0513-127/+138
|
* amend some comments in util-print.cDenis Ovsienko2015-09-051-0/+4
| | | | | | | | | When I needed to print a string and didn't remember which of the three functions fn_print(), fn_printn() and fn_printzp() was the right one for the data, every time it would end up in reading through all of them and forgetting the difference shortly after the commit. Just having it explained in the comments should work better.
* Printers must use ndo_error() function (via ndo->ndo_error)Francois-Xavier Le Bail2015-09-055-14/+18
|
* Keep the two line numbers in esp_print_decode_onesecret() separate.Guy Harris2015-08-311-3/+3
| | | | | | Have the line number for the file we're opening for "file" be separate from the line number we're passed. That avoids warnings, and makes it clearer *which* line number we're using.
* Avoid collison with error(), clean up code a bit.Guy Harris2015-08-311-9/+6
| | | | | | Rename the variable to "error_status", as that's what it represents, and as that doesn't collide with the error() function. Don't set it and then not use the resulting value.
* Avoid collisions with isascii().Guy Harris2015-08-311-4/+4
| | | | Those variables are counts, so just give them names that reflects that.
* Avoid colliding with a tcpdump routine's name.Guy Harris2015-08-311-3/+3
| | | | | Just call the variable "data", not "print_data"; we're obviously printing it.
* Don't collide with strlen().Guy Harris2015-08-311-28/+28
| | | | strlen() is a standard C function, so don't use its name for a variable.
* Get rid of warnings on systems that provide index().Guy Harris2015-08-311-4/+4
| | | | | | | Rename the variable "index" to "idx", so that if the environment in which we're compiling tcpdump happens to declare the index() function (the old V7 name for the function called strchr() in S3/S5 and ANSI C), we don't get compiler warnings.
* The official #define for 32-bit and 64-bit Windows is _WIN32.Guy Harris2015-08-314-54/+54
| | | | | | | | | | | | | It's _WIN32, with a leading underscore, not WIN32. See, for example: https://sourceforge.net/p/predef/wiki/OperatingSystems/ and https://msdn.microsoft.com/en-us/library/b0084kay.aspx *Some* environments may also define WIN32, but we shouldn't depend on that.
* Fix to reflect dBm radiotap values now being displayed as "dBm" rather than ↵Guy Harris2015-08-262-29/+29
| | | | "dB".
* Merge pull request #479 from rlucia/patch-1Guy Harris2015-08-261-2/+2
|\ | | | | dBm values get printed as dB
| * dBm values get printed as dBRocco Lucia2015-08-261-2/+2
|/ | | This is a very old bug, and I think it's time to get fixed :-)
* Add a test that makes unaligned accesses.Guy Harris2015-08-253-0/+5
| | | | | From GitHub issue #478, in which tcpdump crashed on SPARC due to making an unaligned access.
* Don't assume the ONC RPC header is nicely aligned.Guy Harris2015-08-241-1/+2
| | | | | | | Use UNALIGNED_MEMCPY() to extract the XID from it; otherwise, this might crash on machines that require strict alignment (e.g., SPARC machines). Fixes GitHub issue #478.
* Compile with '-Wpedantic' in devel mode as an attempt to get gcc-ismFrancois-Xavier Le Bail2015-08-192-0/+33
|
* Fix warnings as "comma at end of enumerator list"Francois-Xavier Le Bail2015-08-193-8/+8
| | | | | The warnings were: comma at end of enumerator list [-Wpedantic]
* Fix a warning as "ISO C90 forbids mixed declarations and code"Francois-Xavier Le Bail2015-08-181-6/+7
| | | | | | | | The warning was: ./tcpdump.c: In function 'droproot': ./tcpdump.c:496:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement] int ret = capng_change_id(pw->pw_uid, pw->pw_gid, CAPNG_NO_FLAG); ^
* Compile with '-Wdeclaration-after-statement' in devel modeFrancois-Xavier Le Bail2015-08-182-0/+33
|
* Fix warnings as "ISO C90 does not support the '%T' gnu_strftime format"Francois-Xavier Le Bail2015-08-181-1/+1
| | | | | The complete warnings were: ISO C90 does not support the '%T' gnu_strftime format [-Wformat=]
* Fix warnings as "ISO C90 does not support the '%lf' gnu_printf format"Francois-Xavier Le Bail2015-08-181-7/+7
| | | | | The complete warnings were: ISO C90 does not support the '%lf' gnu_printf format [-Wformat=]
* Babel: address a couple compiler warningsDenis Ovsienko2015-08-131-2/+2
| | | | | 677:31: warning: variable ‘router_id’ set but not used 676:72: warning: variable ‘hopc’ set but not used
* update CREDITSDenis Ovsienko2015-08-131-0/+1
|
* Babel: add decoder for source-specific extension.Matthieu Boutier2015-08-131-1/+119
|
* Fix typo in comment.Guy Harris2015-08-111-1/+1
|
* Give more details about packet time stamps.Guy Harris2015-07-291-5/+9
| | | | | | | | | | | | | Don't speak of "Ethernet" and "wire", as you might not be sniffing an Ethernet or, indeed, any form of wired network. Note that not only could there be a delay between the point at which the interface is finished receiving the packet and when an interrupt is delivered (whether due to bus delays, polling rather than immediate interrupts being used, or delays in the CPU responding to the interrupt, or more than one of those) but also a delay between the point at which the kernel responds to the interrupt and the point at which it actually applies a time stamp to the packet.