summaryrefslogtreecommitdiff
path: root/print-ospf6.c
Commit message (Collapse)AuthorAgeFilesLines
...
* NDOize OSPFv3 decoderDenis Ovsienko2014-03-271-167/+176
|
* remove tcpdump's own CVS keywordsDenis Ovsienko2014-01-031-5/+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.
* Merge branch 'master' of git+ssh://bpf.tcpdump.org/tcpdump/master/git/tcpdumpMichael Richardson2014-01-011-1/+251
|\ | | | | | | | | Conflicts: enc.h
| * Pull a bunch of headers into the only source file that includes them.Guy Harris2013-12-301-1/+251
| | | | | | | | | | | | For headers included in only one source file, put the header contents in the source file in question, and get rid of a bunch of stuff from the header not used in the source file.
* | ndo-ize print-ascii: hex_print_with_offset()Michael Richardson2014-01-011-2/+2
| |
* | whitespace changesMichael Richardson2014-01-011-2/+2
|/
* OSPFv3: add crypto authentication (RFC6506) supportDenis Ovsienko2013-12-291-16/+124
| | | | | | | | | | | | | | | * 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.
* OSPFv3: fix more minor issuesDenis Ovsienko2013-12-281-24/+18
| | | | | | | | | | | * Add 3 more LS types and the M6-bit. * Print multicast LS type and prefix option as deprecated. * Remove needless forward declarations. * Make ospf6_decode_v3() consider vflag for every packet type and raise the margin from "> 0" to "> 1" because it is already "> 0" that far. * Fix a message to refer to packet type instead of LS type. * Remove irrelevant comment. * Don't print unknown protocol version 2nd time.
* make consistent use of the "tstr" idiomDenis Ovsienko2013-12-261-2/+2
| | | | | | | | For each decoder that has more than one instance of truncation signaling and prints the same string in each instance make sure that the string is declared as "static const char tstr[]" right after the initial includes block. Where necessary, replace fputs(s, stdout) with equivalent printf("%s", s).
* OSPFv3: refresh options and flagsDenis Ovsienko2013-12-231-2/+5
|
* justify declarations of struct tok arraysDenis Ovsienko2013-09-241-5/+5
| | | | | | 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 __inline with MSVC for all source files.Guy Harris2013-06-091-4/+0
|
* Redo length checks in ospf6_print_lsa().Guy Harris2011-10-131-74/+129
| | | | | | Check to make sure we haven't run past the end of the LSA by doing length checks - and be a bit fussier about length checks. Do more end-of-packet checks as well.
* Cast "sizeof" to a "u_int"; it's not guaranteed to be "int" in size (itguy2006-09-131-2/+2
| | | | | | could be "long", for example, and probably *is* "long" on LP64 platforms), so you can't print it with "%u", but, in this particular case, it's going to fit in a 32-bit quantity.
* -rework the OSPFv3 printer:hannes2006-09-051-346/+250
| | | | | | | -share the grace and TE LSA printer with the OSPFv2 printer -change to multiple line output (behind vflag) -unambiguate datastructures such that the OSPFv3 printer can include OSPFv2 header files.
* Have the configure script arrange that the Makefile define _U_guy2003-11-161-4/+4
| | | | | | | | | | 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.
* From Neil Spring:guy2003-11-151-4/+4
| | | | | | | | | | | 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".
* Fix up some errors from the previous checkin.guy2002-12-111-4/+6
| | | | | | | Fix up some const and unsigned issues. Make static some routines unused outside the file in which they're defined.
* The "__attribute__((packed))" tag on structures causes some files not toguy2002-12-111-33/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Added support for Win32, based on WinPcap.risso2002-08-011-7/+6
|
* whitespace cleanupitojun2002-06-111-3/+3
|
* Quiet down gcc -Wallfenner2001-05-091-2/+2
|
* Get rid of includes of <netinet/in_systm.h>, and replace "n_short",guy2000-09-291-2/+1
| | | | "n_long", and "n_time", defined in that file, with other types.
* Add an "ip.h" header, to declare the IP stuff needed by dissectors, andguy2000-09-231-3/+1
| | | | | | | | | | | have dissectors include them rather than <netinet/ip.h> or <netinet/ip_var.h>, if they actually need that stuff. Put the declarations of the ICMP stuff directly into "print-icmp.c". Remove all unnecessary includes of <netinet/ip*.h> files. Copy the byte-order stuff from "nameser.h" into "tcp.h".
* correct ospf6 AS external LSA printing.itojun2000-05-121-35/+54
| | | | From: jinmei@kame.net
* avoid extra space.itojun2000-03-151-2/+2
|
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.itojun1999-10-301-0/+664
Hope I did not break anything. Portability on IPv4-only node needs checking, I'll do this very soon. (sorry for rather jumbo commit) XXx what is _FAVOR_BSD?