Francois-Xavier Le Bail
da20bc56d6
Rename EXTRACT_ macros
...
Now all the macros have a name meaning a count in bytes.
With _S_: signed, _U_: unsigned
e.g.:
EXTRACT_BE_32BITS -> EXTRACT_BE_U_4
EXTRACT_LE_32BITS -> EXTRACT_LE_U_4
...
EXTRACT_BE_INT32 -> EXTRACT_BE_S_4
and have:
EXTRACT_8BITS -> EXTRACT_U_1
EXTRACT_INT8 -> EXTRACT_S_1
2017-11-22 23:54:09 +01:00
Francois-Xavier Le Bail
3c8f3e13b0
Rename ND_TCHECK_/ND_TTEST_ macros
...
Now all the macros have a name meaning a count in bytes.
e.g.:
ND_TCHECK_32BITS -> ND_TCHECK_4
ND_TTEST_32BITS -> ND_TTEST_4
2017-11-22 21:58:44 +01:00
Francois-Xavier Le Bail
cb9b665059
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (18/n)
...
Assignment, *(p op e)
Partial list.
2017-11-21 22:23:47 +01:00
Francois-Xavier Le Bail
716e07e060
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (12/n)
...
In ND_PRINT() macro calls.
2017-11-20 09:40:00 +01:00
Francois-Xavier Le Bail
12e1c2f6fc
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (3/n)
...
In EAP_TTLS_VERSION() macro calls.
2017-11-19 14:35:37 +01:00
Francois-Xavier Le Bail
ea759b171c
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (2/n)
...
In tok2str() calls.
2017-11-19 13:26:02 +01:00
Francois-Xavier Le Bail
b9be0f8386
Use more the EXTRACT_8BITS() macro to fetch a one-byte value (1/n)
...
In bittok2str() calls.
2017-11-19 12:54:25 +01:00
Francois-Xavier Le Bail
577621026d
Rename EXTRACT_nBITS() macros to EXTRACT_BE_nBITS()
...
It indicates clearly that these macros are used to extract big-endian
integral values.
2017-11-18 13:56:40 +01:00
Denis Ovsienko
413840cf18
Don't specify struct as "const" within sizeof().
...
The only difference the const qualifier makes in this context is visual,
make it consistent with the rest of the source code.
2017-09-13 13:33:02 +01:00
Guy Harris
9851220811
CVE-2017-13015/EAP: Add more bounds checks.
...
This fixes a buffer over-read discovered by Bhargava Shastry,
SecT/TU Berlin.
Add a test using the capture file supplied by the reporter(s), modified
so the capture file won't be rejected as an invalid capture.
2017-09-13 12:25:44 +01:00
Francois-Xavier Le Bail
89789e51d5
Fix used but marked unused parameters
2016-08-19 01:58:35 +02:00
Francois-Xavier Le Bail
b38f324af9
Add a summary comment in all other printers
...
Moreover:
Remove some redundant comments
Update some summary comments
Update the specification URL for ATA over Ethernet (AoE) protocol
2016-08-15 22:42:38 +02:00
Francois-Xavier Le Bail
11d3a01319
Move the printer summaries from INSTALL.txt to each printer
...
with the tag '\summary:' for greping.
Remark: Currently some printers have no summary line.
Moreover:
Summarize all printers with a single line in INSTALL.txt
2016-08-14 17:03:43 +02:00
Francois-Xavier Le Bail
99c91c3aec
Rename 'tcpdump-stdinc.h' to 'netdissect-stdinc.h'
...
Get the full log via: git log --follow netdissect-stdinc.h
2015-09-10 08:50:40 +02:00
Francois-Xavier Le Bail
c1c3c77463
Printers must include 'netdissect.h', not 'interface.h'
2015-09-05 23:35:58 +02:00
Denis Ovsienko
38700c7f24
dismiss NETDISSECT_REWORKED macro
...
The purpose of this macro was to enable the file-by-file switch to NDO,
after which only tcpdump.c had a use of it and the definitions guarded
by it. Update tcpdump.c not to require them any more and dismiss the
unused definitions.
2015-03-22 10:06:15 +00:00
Denis Ovsienko
f0f2e6d058
don't reinvent ND_TCHECK2()
2014-06-12 14:59:03 +04:00
Denis Ovsienko
f274a23dc1
improve previous NDO conversions
2014-04-03 17:41:02 +04:00
Denis Ovsienko
64e53f90ca
NDOize EAP, IEEE CFM, lwres, SIP & Syslog decoders
2014-04-01 19:46:05 +04:00
Denis Ovsienko
51670d1949
NDOize safeputs() and safeputchar()
2014-04-01 19:46:05 +04:00
Denis Ovsienko
69f6f4392a
don't include addrtoname.h needlessly
2014-02-25 17:53:08 +04:00
Denis Ovsienko
fe3253b9b8
remove tcpdump's own CVS keywords
...
Remove lots of $Header's and a few $Id's that all belong to the former
CVS repository of tcpdump itself. These keywords have been frozen since
the migration to git in late 2008.
2014-01-03 00:59:08 +04:00
Michael Richardson
a97fb2f3ae
whitespace changes
2014-01-01 21:31:18 -05:00
hannes
959f2c8210
from Carles Kishimoto <carles.kishimoto@gmail.com>: make the EAP printer more verbose
2007-10-04 16:41:33 +00:00
hannes
8005b9c8a6
from Carles Kishimoto <carles.kishimoto@gmail.com>: make the EAP printer more verbose
2007-10-04 08:34:28 +00:00
mcr
f1fa25bfef
do not use gcc-ism for macro, instead abuse C-syntax
2004-04-23 19:03:39 +00:00
guy
2536993383
Squelch a compiler warning.
2004-04-05 22:35:36 +00:00
mcr
33fee60fe0
beginnings of library version of netdissect.
2004-03-25 03:29:53 +00:00