summaryrefslogtreecommitdiff
path: root/print-gre.c
Commit message (Collapse)AuthorAgeFilesLines
...
* NDOize 8 more small decodersDenis Ovsienko2014-03-131-2/+2
| | | | | This change converts ZeroMQ, IPX, MPLS, IPv6 options, PPPoE, RIPng, PFLOG and Sun RPC decoders.
* NDOize ARCNET, BFD and GRE decodersDenis Ovsienko2014-03-111-81/+79
|
* 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-3/+3
|
* make consistent use of the "tstr" idiomDenis Ovsienko2013-12-261-3/+5
| | | | | | | | 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).
* justify declarations of struct tok arraysDenis Ovsienko2013-09-241-1/+1
| | | | | | 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.
* Convert the IPv6 printer to use netdissect.Guy Harris2010-11-071-1/+1
|
* reworked print-ether to use netdissectMichael Richardson2010-10-071-1/+1
|
* Process VLAN frames and Alteon jumbo frames in the Ethernet printer.Guy Harris2010-02-211-1/+1
| | | | | | | | | | | | | | | | | Instead of having the Ethernet-type handler process the VLAN and Alteon jumbo frame Ethernet type values, process them in the Ethernet (and Linux cooked-mode) dissectors. This makes it easier for the right MAC addresses to be printed for those packets. As part of that, rename ether_encap_print() to ethertype_print() - it doesn't print encapsulated Ethernet frames, it prints payloads whose packet type is indicated by an Ethernet type field value - and remove the no-longer-needed "extracted Ethernet type" argument. That also lets us eliminate it from the SNAP print routine. Make ether_print() take a function, and an argument to pass to that function, as parameters, so that, for example, the ATM LANE printer can use it and put the LEC ID into the link-layer headeer printout.
* From William J. Hulley: support for the Transparent Ethernet BridgeGuy Harris2009-02-261-0/+3
| | | | ethertype in GRE.
* refactored ip_print() so that chained header parser (ESP/AH) canmcr2005-04-061-2/+2
| | | | more easily call the inner parts.
* - print packet length even after no-payload frameshannes2004-07-021-4/+7
| | | | | | | | | | - from alex medvedev <alexm@pycckue.org>: case ETHERTYPE_IPV6: ip6_print(bp, len); break; needs a #ifdef INET6 around
* -call the PPP printer in GREv1 (to better debug PPTP)hannes2004-06-291-53/+56
| | | | | -commatized and multipline output for better readability -make use of bittok2str() for flag processing
* - hack the ethertype_values[] table to accomodate GRE flavourshannes2004-06-121-18/+39
| | | | | - call the IP6, IPX, ATALK, MPLS dissectors within the GRE dissector - be more verbose about the GRE proto-id (hidden under the eflag)
* 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
* fixed GRE OSI-type as per ijotuns hinthannes2002-10-311-2/+2
|
* tabifyitojun2002-10-301-4/+4
|
* o for gre version 1, correctly check if kp (key present) is unset.itojun2002-10-301-14/+14
| | | | | | | | | o remove trailing spaces for better output. o print sequence, acknowledge and callid as unsigned, and remove key from version 1 since it's actually the payload length (not including the gre header). from openbsd
* OSI (IS-IS) support over GRE tunnelshannes2002-09-241-1/+5
|
* rewrite with better license (explicit "with or without modification").itojun2002-09-201-126/+325
| | | | from openbsd
* Added support for Win32, based on WinPcap.risso2002-08-011-7/+2
|
* whitespace cleanupitojun2002-06-111-4/+4
|
* Get rid of unneeded incomplete definitions of "struct mbuf" and "structguy2002-06-011-2/+1
| | | | | rtentry", and unneded includes of <sys/uio.h>, <sys/file.h>, and <sys/ioctl.h>.
* Remove #if 0 sectionsfenner2001-06-151-1/+2
| | | | | | | | Finish converting over to having the caller print the IP address (except for UDP, TCP and SCTP). This consists mostly of removing places where the IP address is printed, both in the big "case" in ip_print() and in the individual printers. Also fix a couple of spacing bugs.
* Fix checksum and offset printing.fenner2001-03-131-12/+23
|
* Assorted PPTP and GRE enhancements from Motonori Shindoguy2001-03-121-43/+34
| | | | <mshindo@mshindo.net>.
* Update GRE printer from RFC 2784 (GRE), 2890 (Key and Sequence extensions).fenner2001-02-031-10/+49
| | | | | Handle PPTP's GRE extension (RFC 2637) Print the seq, ack, key fields if -vv
* Making "extracted_ethertype" static to "print-ether.c" broke otherguy2000-12-181-3/+4
| | | | | | | | | | | | | | dissectors that expected calls to "llc_print()" to set it. (Thanks and a tip of the hat to Olaf Kirch <okir@caldera.de> for noticing this.) Make "ether_encap_print()" and "llc_print()" take a pointer to an extracted-Ethertype variable as an argument, have "llc_print()" pass it to "ether_encap_print()", and have "ether_encap_print()" set what it points to rather than setting a static "extracted_ethertype" variable. Get rid of said static "extracted_ethertype" variable in favor of one local to "ether_if_print()", just as other link-layer dissectors have local "extracted_ethertype" variables.
* 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-2/+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".
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* use ether_encap_print. From kuznet@ms2.inr.ac.ruassar1999-11-211-14/+4
|
* Initial revisionmcr1999-10-071-0/+141