| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
This change converts ZeroMQ, IPX, MPLS, IPv6 options, PPPoE, RIPng,
PFLOG and Sun RPC decoders.
|
|
|
|
|
| |
This change converts decoders for: DLT_RAW, IPv6 routing header, USB,
Symantec firewall and cHDLC.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Report "length bogus, should be ..." for invalid lengths for all
options. That's not a fatal error - the next option can be parsed - so
don't return 0 in that case.
Don't put a colon after the option length unless there's something
following it.
Do the TCHECKs for particular CCP options in the code to handle the
option, as is done elsewhere.
Print the values for the CCP options on the same line, as is done
elsewhere.
|
|
|
|
|
|
|
|
|
| |
Report the CCP protocol type as CCP.
Decode options for BSD, MRVCA, and DEFLATE compression.
Add some explanatory comments, and add some length checks, while we're
at it.
|
|
|
|
|
|
|
|
|
|
| |
Both interface.h and netdissect.h include <pcap.h>, thus most files
should not include it regardless if these need it or not. The only
exceptions so far remain:
* addrtoname.c
* missing/datalinks.c
* missing/dlnames.c
* tcpdump.c
|
| |
|
|
|
|
|
| |
Thanks and a tip of the Hatlo hat to the Clang Static Analyzer for
catching these.
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
|
| |
Make sure all of them are declared const and most of them -- static.
Proper declaration of token arrays is a common review point for new code
that is based on existing decoders. Thus fix the issue at its root.
|
| |
|
|
|
|
|
|
|
|
| |
Use the EXTRACT_ macros to extract multi-byte integral values from
packets, rather than just dereferencing pointers into the packet; there
is no guarantee that the packet data will be aligned on the right
boundary, and there is no guarantee that, if they're not, a direct
access will work correctly.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
just uninterpreted data; calling it "Unknown Data" makes it sound as if
it's data that shouldn't be there or for which we don't have any code to
interpret it. Just call it "Data".
The data in a Protocol-Reject packet is the rejected packet; label it as
such.
The data in an Identification packet is a message intended to be
human-readable; print it with "fn_printn()".
|
|
|
|
|
|
| |
includes the lengths of the 1-byte type and length fields. Thanks and a
tip of the hat to Gerald Combs for catching this one with his
fuzz-testing stuff.
|
|
|
|
|
| |
-make more use of tok2str()
-improve unknown option hexprinting
|
| |
|
|
|
|
| |
more easily call the inner parts.
|
| |
|
|
|
|
| |
tok2str() instead
|
|
|
|
|
|
| |
inserted the printer at the end of a fall-through chain
which caused all packets to first get passed through the
ML-PPP printer and causing bogus display output
|
|
|
|
|
|
| |
- add PPP_IPV6 in the PPP name resolution table
- change the cryptic SSNHF LCP options
to "12 Bit seq #" for better clarity to human devices
|
|
|
|
|
| |
-make more use of tok2str() in the IPCP options printer
-print length field for empty conf-req messages
|
| |
|
| |
|
|
|
|
| |
indentation.
|
|
|
|
|
|
| |
catch the self-set null pointer if handle_ctrl_proto()
stumbles across an unknown control-proto for which we
have no specific options decoder;
|
|
|
|
|
| |
Also, show protocols we don't dissect by name, if we have the name in
"ppptype2str[]".
|
| |
|
|
|
|
| |
support for HDLC inside PPP
|
|
|
|
| |
IP inside the Van Jacobson encaps.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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".
|
| |
|
|
|
|
| |
should be really printed in ether_print() using the eflag
|
| |
|
| |
|
| |
|
|
|
|
| |
- hook in MPLSCP, OSICP and IPV6CP handle_ctrl_proto()
|
|
|
|
|
| |
print 3-digit ttl field in print-ip.c
unbracketize the LCP id in print-ppp.c
|
| |
|
| |
|
|
|
|
|
|
| |
tcpdump.c. Have if_print routines return the length of the link-layer
header, so that the common code knows how to skip the link-layer header
when printing the packet in hex/ASCII.
|