summaryrefslogtreecommitdiff
path: root/ospf.h
Commit message (Collapse)AuthorAgeFilesLines
* OSPF: Update more router properties bits. [skip ci]Denis Ovsienko2021-01-231-2/+3
|
* ospf: add support bit Nt RFC3101ckishimo2021-01-231-0/+1
|
* OSPF: Update the option bit props.Denis Ovsienko2020-10-021-3/+2
| | | | | | | 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.
* Use nd_ipv4 rather than struct in_addr.Guy Harris2018-01-301-19/+19
| | | | | | 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.
* Make 1-element arrays for fields that may repeat.Guy Harris2017-12-231-3/+3
| | | | | | | | | | | 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.
* Use nd_ types for OSPF and OSPF6 packets.Guy Harris2017-12-141-49/+49
| | | | | | And add EXTRACT_ calls as required. Remove no-longer-necessary & operators in EXTRACT_ calls.
* OSPF: refine unknown packet type handlingDenis Ovsienko2017-02-021-1/+0
| | | | | | 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.
* More getting rid of old u_intN_t.Guy Harris2014-04-231-48/+48
|
* NDOize DECnet, OSPF and TCP decodersDenis Ovsienko2014-04-021-4/+0
|
* remove tcpdump's own CVS keywordsDenis Ovsienko2014-01-031-1/+0
| | | | | | 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.
* whitespace changesMichael Richardson2014-01-011-1/+1
|
* OSPFv3: add crypto authentication (RFC6506) supportDenis Ovsienko2013-12-291-0/+2
| | | | | | | | | | | | | | | * 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.
* Constify some arguments.Guy Harris2011-10-131-2/+2
|
* clean up some code-cosmetics that came up during code-reviewhannes2007-10-081-8/+17
|
* fix illustrationhannes2007-09-271-5/+1
|
* add support for multi-topology ospf as per draft-ietf-ospf-mt-09hannes2007-09-271-14/+10
|
* From Marc Binderberger:guy2007-09-231-3/+17
| | | | | | | | | 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.
* bugfix: use the correct codepoint for the OSPF simple text auth token entry.hannes2006-12-131-1/+2
| | | | use safeputs to print the password.
* -share the grace LSA and TE LSA printer with the outside world.hannes2006-09-051-11/+8
| | | | -misc. cosmetic cleanups
* update diffserv-TE codepoints as per rfc4124hannes2005-08-231-2/+2
|
* add support for the Up/Down Bit as per draft-ietf-ospf-2547-dnbit-04hannes2004-09-201-1/+2
|
* add support for the Opaque Router Information LSA and the Router ↵hannes2004-09-201-2/+12
| | | | Capabilities TLV as per draft-ietf-ospf-cap-03
* add (cheap) support for NSSA LSAshannes2004-09-091-2/+2
|
* add support for Diffserv TE per draft-ietf-tewg-diff-te-proto-06hannes2004-01-271-1/+2
|
* add support for Graceful OSPF Restart (rfc3623)hannes2004-01-081-2/+18
|
* - fix a compiler padding issue in the LS-Request structurehannes2003-10-221-3/+9
| | | | | | | u_int32_t ls_type becomes u_int8_t ls_type[4]; - teach the LS-Request decoder howto properly print Opaque LSAs
* - squelch some compiler warningshannes2003-10-041-4/+34
| | | | | | 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
* show opaque-LSA specific fields of the LSA headerhannes2003-10-031-12/+8
|
* add better handling for unknown LSAs to OSPFhannes2003-10-021-1/+6
|
* The "__attribute__((packed))" tag on structures causes some files not toguy2002-12-111-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Get rid of extra semicolon.guy2002-12-111-2/+2
|
* put __attribute__((packed)) to packet headers. s/u_short/u_int16_t/ and soitojun2002-11-091-5/+5
| | | | forth while i'm here
* ospf rework;hannes2002-11-071-13/+36
| | | | | | | | | - 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;
* Give a bunch of files RCS and SCCS IDs.guy2000-12-171-0/+1
|
* always use u_intXX_t for protocol format declaration. char/short/int may notitojun2000-10-031-26/+26
| | | | | | 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
* Initial revisionmcr1999-10-071-0/+226