summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-ether.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* add support for printing RfC 2332 NBMA Next Hop Resolution Protocol (NHRP)remi2020-04-151-1/+8
| | | | ok dlg@
* - (void)printf() -> printf(); the cast adds clutter for little value.procter2020-01-241-11/+11
| | | | | | | | | | - fprintf(stdout, ...) -> printf() - fputs(x, stdout) -> printf(); for consistency. fputs is twice as fast on atom x5-Z8300@1.44GHz but Amdahl sees a pure printf tcpdump only 2% slower than a pure fputs (for constant strings) tcpdump to /dev/null across a 20MB/~170k packet pcap file. ok dlg@ for fputs and ok tedu@ krw@ deraadt@ a2k19 for the rest
* add support for printing RFC 8300 Network Service Header (NSH)dlg2019-12-031-1/+8
| | | | ok deraadt@
* later versions of 802.1Q replaced the vlan CFI field with DEIdlg2018-11-181-2/+2
| | | | | | | CFI stood for canonical format indicator, and basically said whether the payload was ethernet of fddi (with 0 meaning ethernet). DEI stands for drop eligibility indicator
* handle the 802.1Q i-tag format for provider backbone bridges.dlg2018-11-181-1/+46
|
* Remove #ifdef INET6kn2018-10-221-6/+2
| | | | | | | | | | | | There's not reason to build without IPv6 support, `-U INET6' builds were broken anyway. Fix an empty redefine for IPPROTO_IPV6 in print-ip.c while here. No object change on amd64 and sparc64 with clang, gcc compiles differently but behaviour stays the same. OK denis deraadt
* tweak vlan printing to properly decode the priority field.dlg2018-04-031-5/+13
| | | | | | | | | | the vlan specs have the priority of 0 and 1 swapped on the wire, which is how the kernel handles them. eg, if you use pf to set prio 1, it will end up being 0 on the wire. this makes 0 on the wire come out as 1 in tcpdump so it is consistent with the rest of the tooling. ok henning@
* Teach tcpdump to recognize MPLS pseudowire with control words. Addedrzalamena2016-07-111-15/+21
| | | | | | support to print encapsulated ethernet packets as well. "Looks good" deraadt@
* Remove remaining instances of the register keyword.mmcc2015-11-161-3/+3
| | | | ok deraadt@
* Replace <sys/param.h> with <limits.h> and other less dirty headers wherederaadt2015-01-161-2/+1
| | | | | | | | | possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
* No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.mpi2014-08-141-2/+1
|
* Include the link-level header in the hex output if both the -x and -ejsing2010-01-141-6/+19
| | | | | | options are specified. ok claudio@ sthen@ deraadt@ jmc@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-5/+1
| | | | | | | unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
* add ethertype and tcpdump support for VLAN stacking (QinQ) withsthen2008-12-051-3/+7
| | | | | | type number 0x88a8 specified by 802.1ad. from reyk on misc@. "ok, go for it" dlg
* Add support for IEEE "slow protocols" LACP, MARKER as per 802.3ad.mpf2008-10-161-2/+6
| | | | | | Code from tcpdump.org with cleanup and shrinkage by me. Help and ideas for extra sanity checks from canacar@ OK canacar@
* trash $Header goo which is just annoying; 5595deraadt2007-10-071-2/+2
|
* Pass the captured packet length in addition to the real packet lengthmoritz2006-06-011-7/+13
| | | | | | | to etherip_print() and do all the bounds checking with it. Also add bounds checks to ether_print(). This fixes even more crashes. ok canacar@
* Add a simple printer for IEEE 802.1AB LLDP, the Link Layer Discoveryreyk2006-03-281-2/+6
| | | | | | | | | Protocol. LLDP is used by some switch vendors as a replacement for the non-free Cizzco Discovery Protocol (CDP) due to some Cisco patentry... ok brad@
* Add a best effort mpls decoder. From Jason L. Wright.canacar2005-10-081-2/+7
| | | | | | | Since the encapsulated protocol information is not always available in the MPLS tag stack. The decoder attempts to guess the protocol. ok brad@
* 802.3X pretty printer (dead simple)jason2004-01-221-2/+36
| | | | jakob@: "seems reasonable"
* We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.millert2002-02-191-4/+2
|
* etherip printing code... handles draft (v2) and current (v3)jason2001-02-051-4/+4
|
* Add $OpenBSD$. (jakob@ ok)ho2000-10-031-1/+3
|
* INET6jakob2000-04-261-2/+11
| | | | | | DHCP/BOOTP tcp & udp checksum detection numerous bugfixes
* Use ETHERTYPE_8021Qchris2000-03-071-2/+2
|
* Add 802.1Q from kuznet@ms2.inr.ac.ru via tcpdump.orgchris2000-03-071-4/+31
| | | | also, make extracted_ethertype not extern
* Remove bogus 802.1Q codechris2000-02-191-12/+1
| | | | ok jakob@
* Add support for dumping PPPoE Discovery and Session packetsjason2000-02-181-1/+8
|
* VLAN 802.1q supportjakob2000-01-161-1/+12
|
* #if __STDC__ --> #ifdef __STDC__brad1999-09-161-3/+3
|
* - Merge some changes from tcpdump 3.4jakob1999-07-281-2/+2
| | | | | | | | | | | | | | | -a flag; attempt to convert network and broadcast addresses to names Improved signal handling Miscellaneous fixes and typos OSPF MD5 authentication support - -X flag; emacs-hexl print (including ascii) - Add ECN bits to TCP and IP headers - IKE & IPsec (ESP & AH) support OK deraadt@
* Ethernet v2 encapsulated Appletalk packets are phase 1, w/ LLAP header.denny1997-07-271-2/+2
| | | | 802.3/SNAP encapsulated Appletalk packets are phase 2, w/ no LLAP header.
* *** empty log message ***bitblt1996-12-121-14/+8
|
* add NetBIOS printing.mickey1996-11-121-1/+5
|
* it is 3.2 now.mickey1996-07-131-4/+7
|
* sync to latestderaadt1996-06-101-1/+1
|
* Updating to the latest LBL release.mickey1996-03-041-0/+1
| | | | Sun's SKIP support added.
* initial import of NetBSD treederaadt1995-10-181-0/+194