summaryrefslogtreecommitdiff
path: root/print-ether.c
Commit message (Collapse)AuthorAgeFilesLines
...
* update changes filemcr2004-03-301-1/+6
|
* Fix up a bunch of comments - the on-the-wire length field in aguy2004-03-171-2/+2
| | | | pcap_pkthdr is "len", not "length".
* add support for Jumbo Ethertype 0x8870 and embedded OSI traffichannes2004-02-181-1/+32
|
* print ethertypes in hex and fix qflag handling for unknown ethertypeshannes2003-12-291-3/+9
|
* backout last commit and make the loopback decoder simply return a 0hannes2003-12-291-7/+3
|
* - handle the case where we know the ethertype but do not have a printer for ithannes2003-12-291-2/+6
| | | | | | the loopback protocol is a good example: the patch prints at least the ethertype plus the length rather than a empty line
* 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".
* Define "ethertype_values[]" in "print-ether.c", make it not static, andguy2003-07-011-1/+34
| | | | | | | | | | | | | have "ethertype.h" just declare it, so that 1) we only have one such table, shared by all dissectors that use it and 2) GCC 3.3 doesn't complain that it's defined but not used in those dissectors that incldue "ethertype.h" but don't use "ethertype_values[]".
* hide the 802.1Q header if eflag, print ethertype during 802.1Q stack ↵hannes2003-05-281-33/+32
| | | | recursion if eflag, misc. cleanups
* forgot message log on last commit, sorry :-(hannes2003-05-221-3/+1
| | | | | here we are: - suppress printing the ethertype when encaps is 802.2
* *** empty log message ***hannes2003-05-221-12/+16
|
* fix typo from previous commithannes2003-05-081-2/+2
|
* align eflag printing style with ppp printerhannes2003-05-081-3/+3
|
* Hoist a bunch of stuff that should be done by all if_print routines intoguy2002-12-191-28/+5
| | | | | | tcpdump.c. Have if_print routines return the length of the link-layer header, so that the common code knows how to skip the link-layer header when printing the packet in hex/ASCII.
* Add a new routine "default_print_packet()", which takes a pointer to theguy2002-12-181-5/+4
| | | | | | | | | | | | | | | | | | | | | | | beginning of the raw packet data, the captured length of the raw packet data, and the length of the link-layer header, and: if "-e" was specified, prints all the raw packet data; if "-e" was not specified, prints all the raw packet data past the link-layer header, if there is any. Use that routine in all the "xxx_if_print()" routines if "-x" was specified. Make "arcnet_encap_print()" static - it's not used outside "print-arcnet.c". Add missing info printing code to "atm_if_print()". Print the packet data in "lane_if_print()", not in "lane_print()", as "lane_print()" can be called from other "xxx_if_print()" routines, and those routines will also print the packet data if "-x" was specified - no need to print it twice.
* We no longer use "packetp" for anything, so eliminate it. (If anyguy2002-12-181-6/+4
| | | | | | | | | | | | | dissector really needs source and destination MAC addresses, we should make global pointers to them - which would be null for packets lacking MAC addresses, so dissectors that need them will need to do something sensible if those pointers are null.) Don't fake up an Ethernet header if there aren't any MAC addresses to use when faking it up. "bp_chaddr" in "print-bootp.c" is an array, so "bp->bp_chaddr" cannot be null, and there's no need to test for it not being null.
* Get rid of the "-Wno-unused" flag, and fix up most of theguy2002-09-051-4/+4
| | | | | | | | | | | | | | | unused-parameter problems reported by GCC. Add an _U_ tag to label parameters as unused if the function is called through a pointer (so that you can't change its signature by removing parameters) or if there are unused parameters only because the function isn't complete. Add some additional bounds checks the necessity for which was revealed while cleaning up unused-parameter problems. Make some routines static. "lcp_print()", defined in "print-lcp.c", isn't called anywhere - "print-ppp.c" has the code to dissect LCP. Get rid of "print-lcp.c".
* Added support for Win32, based on WinPcap.risso2002-08-011-6/+2
|
* "support" for the loopback ethertype 0x9000hannes2002-07-121-1/+5
|
* whitespace cleanupitojun2002-06-111-3/+3
|
* Get rid of unneeded incomplete definitions of "struct mbuf" and "structguy2002-06-011-4/+1
| | | | | rtentry", and unneded includes of <sys/uio.h>, <sys/file.h>, and <sys/ioctl.h>.
* Only do "-x" printing in the top-level interface print routine; don't doguy2002-05-291-6/+11
| | | | | | | it in the routines, called by the top-level routines, to dissect Ethernet, FDDI, or Token Ring packets, as those routines might also be called for bridged frames over ATM, and the interface print routine for ATM will also do "-x" printing.
* Support RFC 2684 bridging of Ethernet, 802.5 Token Ring, and FDDI, andguy2002-04-071-18/+26
| | | | RFC 2684 encapsulation of BPDUs.
* From Heinz-Ado Arnolds <Ado.Arnolds@dhm-systems.de>: mark IPX packetsguy2001-11-251-1/+2
| | | | according to whether they're Ethernet II, 802.3, or 802.2.
* Add SIGINFO handler from LBLfenner2001-07-041-2/+6
| | | | | The rest of the low-level print-*.c handlers need the infodelay wrapping too.
* MPLS label encapsulation decoding, per RFC3032.itojun2001-06-211-1/+6
| | | | TODO: multiple labels. other media types.
* Assorted PPTP and GRE enhancements from Motonori Shindoguy2001-03-121-3/+3
| | | | <mshindo@mshindo.net>.
* Handle (GRE-encapsulated) PPTPfenner2001-02-041-1/+9
|
* Put the LINUX_SLL_P_ definitions back, and check for at least some ofguy2000-12-221-2/+2
| | | | | | | | | | | | | | | | | them in "print-sll.c" - as a cooked-mode capture may be reading from non-Ethernet, non-802.x devices, it may well see some ETH_P_/LINUX_SLL_P_ types that don't mean "this is an 802.2 LLC frame". We currently assume that the ETH_P_ values won't change in the kernel, so we don't have to explicitly map them. In various link-layer packet printers, if we don't handle the next layer up of packet type, and are printing the link-layer header, use the correct pointer to that header (i.e., if we've stepped "p" past the link-layer header, don't use "p", use a pointer to the beginning of the packet), and use the correct length (i.e., if we've subtracted the length of the link-layer header, add it back in, so that we always print the full packet length).
* Making "extracted_ethertype" static to "print-ether.c" broke otherguy2000-12-181-13/+17
| | | | | | | | | | | | | | 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.
* Improved VLAN support, from Peter Jeremy - "vlan" filtering keyword,guy2000-10-221-2/+2
| | | | | | letting you filter based on the VLAN to which a packet belongs, and an improvement to the printing of VLAN packets (adding an extra space to separate the VLAN priority and flags from the next stuff printed).
* Some compilers may pad structures to a length that's a multiple of 2 orguy2000-10-091-6/+6
| | | | | | | 4 bytes, even though no member in the structure requires such an alignment; don't use "sizeof (struct ether_header)" or "sizeof (struct fddi_header)", explicitly #define the header length and use that #defined value.
* no need to include ip6.hitojun2000-10-071-5/+1
|
* 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.
* Get rid of unneeded includes of <net/if.h>.guy2000-09-281-2/+1
|
* 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".
* Add "tcp.h" and "udp.h" headers, to declare the TCP and UDP stuff neededguy2000-09-231-4/+1
| | | | | | | | | by dissectors, and have dissectors include them rather than <netinet/udp.h>, <netinet/udp_var.h>, or <netinet/tcp.h>, if they actually need that stuff. Remove all unnecessary includes of <netinet/udp*.h> or <netinet/tcp*.h> files.
* Add definitions of Ethernet types fromguy2000-09-231-2/+3
| | | | | | | | | | | | | | | | "linux-includes/netinet/if_ether.h" to "ethertype.h". Move other stuff used by dissectors from <netinet/if_ether.h> to "ether.h", along the lines of "fddi.h" and "token.h". Move ARP declarations from BSD include files to "print-arp.c". Remove from dissectors includes of <netinet/if_ether.h>, and add includes of "ethertype.h" and/or "ether.h" as necessary. Get rid of configuration options that test declarations now made in "ether.h" or "print-arp.c", as those declarations are now under our control, not the OS's control.
* remove non-STDC codeassar2000-07-011-3/+1
|
* (ether_encap_print): add ETHERTYPE_IPX: From Jeffrey Hutzelmanassar2000-06-101-1/+5
| | | | <jhutz@cmu.edu>
* some style. u_int16_t.itojun2000-04-281-9/+9
|
* Switch to config.h instead of passing defines in DEFS.fenner1999-11-211-1/+5
|
* made extracted_ethertype static. Added 802.1Q (vlan) and PPPoE. Fromassar1999-11-211-6/+38
| | | | kuznet@ms2.inr.ac.ru
* Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.itojun1999-10-301-1/+13
| | | | | | | 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?
* patches to help build on Linux 2.2linux22mcr1999-10-171-4/+1
|
* Initial revisionmcr1999-10-071-0/+196