History log of /openbsd-src/usr.sbin/tcpdump/print-ether.c (Results 1 – 25 of 42)
Revision Date Author Comments
# c0568b61 09-Jun-2022 mbuhl <mbuhl@openbsd.org>

Readd ETHERTYPE_NHRPA case.
Found by Stefan Butz.
ok dlg@


# 5bb7f970 05-Jan-2022 dlg <dlg@openbsd.org>

add a basic printer for EAPOL packets.

EAPOL turns out to be a little container for a bunch of other types
of packets, including EAP for use with vanilla 802.1X, a kind of
capability announcement th

add a basic printer for EAPOL packets.

EAPOL turns out to be a little container for a bunch of other types
of packets, including EAP for use with vanilla 802.1X, a kind of
capability announcement thing, and MACsec Key Agreement.

it's not worth adding a separately file for such a small chunk of
functionality, and it seems specific to ethernet. parsers/printers
for the sub protocols can come later if needed.

ok deraadt@ visa@

show more ...


# cbc9c596 05-Jan-2022 dlg <dlg@openbsd.org>

ethertypes.h has now added the missing ethertypes we're looking at here.


# 426b943d 01-Dec-2021 deraadt <deraadt@openbsd.org>

we do not need 'struct mbuf; struct rtentry;' to satisfy some ancient unix
variant that made a header file mistake.
ok jsg


# a66f6432 15-Apr-2020 remi <remi@openbsd.org>

add support for printing RfC 2332 NBMA Next Hop Resolution Protocol (NHRP)

ok dlg@


# f96bb33f 24-Jan-2020 procter <procter@openbsd.org>

- (void)printf() -> printf(); the cast adds clutter for little value.
- fprintf(stdout, ...) -> printf()
- fputs(x, stdout) -> printf(); for consistency.
fputs is twice as fast on atom x5-Z8300@1.44G

- (void)printf() -> printf(); the cast adds clutter for little value.
- 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

show more ...


# 7da8f7c0 03-Dec-2019 dlg <dlg@openbsd.org>

add support for printing RFC 8300 Network Service Header (NSH)

ok deraadt@


# 35bb16a9 18-Nov-2018 dlg <dlg@openbsd.org>

later versions of 802.1Q replaced the vlan CFI field with DEI

CFI stood for canonical format indicator, and basically said whether
the payload was ethernet of fddi (with 0 meaning ethernet).

DEI st

later versions of 802.1Q replaced the vlan CFI field with DEI

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

show more ...


# e388b113 18-Nov-2018 dlg <dlg@openbsd.org>

handle the 802.1Q i-tag format for provider backbone bridges.


# e654d8cd 22-Oct-2018 kn <kn@openbsd.org>

Remove #ifdef INET6

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 amd

Remove #ifdef INET6

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

show more ...


# 0560242b 03-Apr-2018 dlg <dlg@openbsd.org>

tweak vlan printing to properly decode the priority field.

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

tweak vlan printing to properly decode the priority field.

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@

show more ...


# 40588325 11-Jul-2016 rzalamena <rzalamena@openbsd.org>

Teach tcpdump to recognize MPLS pseudowire with control words. Added
support to print encapsulated ethernet packets as well.

"Looks good" deraadt@


# 6ad041cb 16-Nov-2015 mmcc <mmcc@openbsd.org>

Remove remaining instances of the register keyword.

ok deraadt@


# b9fc9a72 16-Jan-2015 deraadt <deraadt@openbsd.org>

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N

Replace <sys/param.h> with <limits.h> and other less dirty headers where
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)

show more ...


# c8768c64 14-Aug-2014 mpi <mpi@openbsd.org>

No use for <netinet/in_systm.h> nor <netinet/tcpip.h>.


# aca7535d 14-Jan-2010 jsing <jsing@openbsd.org>

Include the link-level header in the hex output if both the -x and -e
options are specified.

ok claudio@ sthen@ deraadt@ jmc@


# 043fbe51 27-Oct-2009 deraadt <deraadt@openbsd.org>

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
unmaintainable). these days, people use source. these id's do not provide
any benefit, and do hurt the small install media
(th

rcsid[] and sccsid[] and copyright[] are essentially unmaintained (and
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

show more ...


# 855d0349 05-Dec-2008 sthen <sthen@openbsd.org>

add ethertype and tcpdump support for VLAN stacking (QinQ) with
type number 0x88a8 specified by 802.1ad.

from reyk on misc@. "ok, go for it" dlg


# 3b63b2bc 16-Oct-2008 mpf <mpf@openbsd.org>

Add support for IEEE "slow protocols" LACP, MARKER as per 802.3ad.
Code from tcpdump.org with cleanup and shrinkage by me.
Help and ideas for extra sanity checks from canacar@
OK canacar@


# 2068f686 07-Oct-2007 deraadt <deraadt@openbsd.org>

trash $Header goo which is just annoying; 5595


# e3fcc785 01-Jun-2006 moritz <moritz@openbsd.org>

Pass the captured packet length in addition to the real packet length
to etherip_print() and do all the bounds checking with it. Also add
bounds checks to ether_print(). This fixes even more crashes.

Pass the captured packet length in addition to the real packet length
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@

show more ...


# d7869ad7 28-Mar-2006 reyk <reyk@openbsd.org>

Add a simple printer for IEEE 802.1AB LLDP, the Link Layer Discovery
Protocol.

LLDP is used by some switch vendors as a replacement for the non-free
Cizzco Discovery Protocol (CDP) due to some Cisco

Add a simple printer for IEEE 802.1AB LLDP, the Link Layer Discovery
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@

show more ...


# bf8217ae 08-Oct-2005 canacar <canacar@openbsd.org>

Add a best effort mpls decoder. From Jason L. Wright.
Since the encapsulated protocol information is not always
available in the MPLS tag stack. The decoder attempts
to guess the protocol.
ok brad@


# e288a1b0 22-Jan-2004 jason <jason@openbsd.org>

802.3X pretty printer (dead simple)
jakob@: "seems reasonable"


# e7beb4a7 19-Feb-2002 millert <millert@openbsd.org>

We live in an ANSI C world. Remove lots of gratuitous #ifdef __STDC__ cruft.


12