| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
| |
Bit 0x10 was once going to be EA-bit, but eventually was allocated to
L-bit instead, so remove the EA-bit. Bit 0x01 was allocated to T-bit,
which was later renamed to MT-bit, so rename it. Make some indentation
consistent.
|
|
|
|
|
|
| |
This ensures that we have no purportedly-aligned-but-not-necessarily-
unaligned values that we access; we have to use EXTRACT_ macros/functions
to get at IPv4 address values.
|
|
|
|
|
|
|
|
|
|
|
| |
For various opaque LSAs, not only is the value of the TLV a "may
repeat", the TLVs *themselves* may repeat.
Also, pass a pointer to the TLV to ospf_print_grace_lsa() and
ospf_print_te_lsa(), rather than a pointer to the type field, as they
dissect a sequence of TLVs.
Hopefully, that will address Coverity CID 1426916, 1426917, and 1426920.
|
|
|
|
|
|
| |
And add EXTRACT_ calls as required.
Remove no-longer-necessary & operators in EXTRACT_ calls.
|
|
|
|
|
|
| |
As far as modern OSPF implementations are concerned, packet type 0 is
not a valid value, so let's print it as such. Also for an invalid packet
type tell its decimal value.
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Update ospf6_print() to distinguish packet length and OSPFv3 data
length.
* Fix ospf6_print_lshdr(), ospf6_print_lsa() and ospf6_decode_v3() to
print the variable-sized part of DBDesc, LS-Upd and LS-Ack packets
with the declared length of the OSPFv3 data in mind.
* Implement as little LLS decoding in ospf6_print_lls() as necessary to
indicate and skip an LLS data block.
* Implement normal AT decoding in ospf6_decode_at().
* Add ospf6_decode_v3_trailer() to couple the above with ospf6_print().
This commit doesn't include a sample capture as the only existing RFC6506
implementation is not yet ready to serve as a reference.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
add support for OSPF Link-Local Signaling (RFC 4811/4812/4813);
when printing the Database Description, show the MTU and
sequence number;
fix "bogus length" messages when printing LSA headers.
|
|
|
|
| |
use safeputs to print the password.
|
|
|
|
| |
-misc. cosmetic cleanups
|
| |
|
| |
|
|
|
|
| |
Capabilities TLV as per draft-ietf-ospf-cap-03
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
u_int32_t ls_type becomes
u_int8_t ls_type[4];
- teach the LS-Request decoder howto properly print Opaque LSAs
|
|
|
|
|
|
| |
courtesy Neil Spring nspring [AT] cs [DOT] washington [DOT] edu
- add support for the Traffic Engineering TLV plus all known subTLVs
- add support for draft-ietf-ccamp-ospf-gmpls-extensions defined subTLVs
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
compile with Sun C, as "interface.h" isn't being included before the
structures are being declared.
Furthermore, in the files that Sun C *can* compile, it doesn't cause Sun
C to generate code that's safe with unaligned accesses, as
"__attribute__" is defined as a do-nothing macro with compilers that
don't support it.
Therefore, we get rid of that tag on the structures to which it was
added, and instead use "EXTRACT_16BIT()" and "EXTRACT_32BIT()" to fetch
16-bit and 32-bit big-endian quantities from packets. We also fix some
other references to multi-byte quantities to get rid of code that tries
to do unaligned loads on platforms that don't support them.
We also throw in a hack that makes those macros use
"__attribute__((packed))" on structures containing only one 16-bit or
32-bit integer to get the compiler to generate unaligned-safe code
rather than doing it by hand. (GCC on SPARC produces the same code that
doing it by hand does; I don't know if GCC on any other big-endian
strict-alignment processor generates better code for that case. On
little-endian processors, as "ntohs()" and "ntohl()" might be functions,
that might actually produce worse code.)
Fix some places to use "%u" rather than "%d" to print unsigned
quantities.
|
| |
|
|
|
|
| |
forth while i'm here
|
|
|
|
|
|
|
|
|
| |
- get rid of lots of private tok2string() lookalikes
- changed output formatting to idented multiline output (-v option)
- added defs for opaque, NSSA LSAs
- completed option byte processing
more changes to come;
|
| |
|
|
|
|
|
|
| |
come with exact size. while at it, correct signedness of ip/udp header field.
nuke most of the use of bitfield.
TODO: bitfield in namser.h
|
|
|