summaryrefslogtreecommitdiff
path: root/print-mpls.c
Commit message (Collapse)AuthorAgeFilesLines
* u_intN_t is dead, long live uintN_t.Guy Harris2014-04-231-2/+2
| | | | | | | | | And, as we require at least autoconf 2.61, and as autoconf 2.61 and later have AC_TYPE_UINTn_T and AC_TYPE_INTn_T macros, we use them to define the uintN_t and intN_t macros if the system doesn't define them for us. This lets us get rid of bitypes.h as well.
* NDOize ISO CLNS decoderDenis Ovsienko2014-03-281-1/+1
|
* make use of ND_DEFAULTPRINT()Denis Ovsienko2014-03-261-1/+1
|
* make use of NETDISSECT_REWORKEDDenis Ovsienko2014-03-151-0/+1
| | | | | Update the already converted decoders to define the macro and to include interface.h instead of netdissect.h. Fix incurred compile errors.
* NDOize 8 more small decodersDenis Ovsienko2014-03-131-25/+18
| | | | | This change converts ZeroMQ, IPX, MPLS, IPv6 options, PPPoE, RIPng, PFLOG and Sun RPC decoders.
* don't include addrtoname.h needlesslyDenis Ovsienko2014-02-251-1/+0
|
* 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.
* whitespace changesMichael Richardson2014-01-011-1/+1
|
* Convert the IPv6 printer to use netdissect.Guy Harris2010-11-071-1/+1
|
* The draft in question has nothing to do with MPLS; clarify that.Guy Harris2010-03-191-54/+65
| | | | | | | | | | | Presumably the idea is that the technique is generally applicable as long as the traffic being carried is either IPv4, IPv6, OSI CLNP, ES-IS, or IS-IS. Also, by the time we get there, we know we've reached the bottom of the MPLS stack (the do loop either fails by running past the end of the packet and going to trunc, or by terminating because we find a label entry with the BOS bit set); there's no need to check for that.
* Print the MPLS-encapsulated packet regardless of whether -v wasGuy Harris2010-03-191-81/+108
| | | | | | | specified. Even with multiple layers in the stack, print on one line unless -v was specified.
* -code cosmetics: improve readability by replacing "v" by "label_entry"hannes2005-07-051-19/+28
| | | | | -do multiline formatting for label-stacks deeper than 1 -hide the IPv4/IPv6 printer under the vflag for explicit NULL labels
* refactored ip_print() so that chained header parser (ESP/AH) canmcr2005-04-061-3/+11
| | | | more easily call the inner parts.
* make MPLS label handling macros available to the outside worldhannes2004-06-141-15/+2
|
* add baseline LSP-PING support per draft-ietf-mpls-lsp-ping-05hannes2004-06-061-12/+1
|
* 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".
* don't pass on src & dst MAC adresses to the isoclns decoder as MAC adresseshannes2003-05-221-2/+2
| | | | should be really printed in ether_print() using the eflag
* basic preparations for mpls lsp ping decodinghannes2003-05-081-1/+11
|
* keep the one-line rule for vflag<1, display exp value always, indicate ↵hannes2003-02-041-10/+20
| | | | payload type (IP,IPv6,OSI) in vflag<1 mode
* Generally there's no indication of protocol in MPLS labelhannes2002-08-081-9/+66
| | | | | | | | | | | | encoding, however draft-hsmit-isis-aal5mux-00.txt describes a technique that looks at the first payload byte if the BOS (bottom of stack) bit is set and tries to determine the network layer protocol 0x45-0x4f is IPv4 0x60-0x6f is IPv6 0x83 is IS-IS this technique is sometimes known as NULL encapsulation and decoding is particularly useful for control-plane traffic [BGP] which cisco by default sends MPLS encapsulated
* Added support for Win32, based on WinPcap.risso2002-08-011-7/+2
|
* Print the whole MPLS label stack.fenner2002-05-071-17/+18
| | | | Submitted by: Kaarthik Sivakumar <kaarthik@torrentnet.com>
* Include <netinet/in.h> to declare or define "ntohl()".guy2001-06-261-1/+3
|
* MPLS label encapsulation decoding, per RFC3032.itojun2001-06-211-0/+121
TODO: multiple labels. other media types.