History log of /openbsd-src/usr.sbin/tcpdump/print-tcp.c (Results 1 – 25 of 39)
Revision Date Author Comments
# 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 ...


# 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 ...


# 7a61d4b0 16-Nov-2016 reyk <reyk@openbsd.org>

Add new DLT_OPENFLOW link-type to allow using tcpdump to debug switch(4),
eg. tcpdump -y openflow -i switch0

Includes a minor bump for libpcap.

Feedback and OK rzalamena@


# 28aafed6 22-Oct-2016 rzalamena <rzalamena@openbsd.org>

Teach tcpdump(8) how to read OpenFlow packets. This initial implementation
supports the following message types: hello, error, echo request/reply,
feature request/reply, set config, packet-in, packet

Teach tcpdump(8) how to read OpenFlow packets. This initial implementation
supports the following message types: hello, error, echo request/reply,
feature request/reply, set config, packet-in, packet-out, flow removed and
flow mod.

We currently only support printing this messages for OpenFlow 1.3.5, however
it is possible to reuse some functions and get other versions working too.

ok deraadt@

show more ...


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

Remove remaining instances of the register keyword.

ok deraadt@


# 24ee0174 05-Nov-2015 jca <jca@openbsd.org>

Print unsigned integers as unsigned integers, kill inconsistent casts.

Initial diff by Kevin Reay.


# 35de856e 20-Aug-2015 deraadt <deraadt@openbsd.org>

stdlib.h is in scope; do not cast malloc/calloc/realloc*
ok millert krw


# 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>.


# 127a37bf 20-Jun-2014 lteo <lteo@openbsd.org>

Instead of showing the difference between a bad checksum and a good
checksum, make tcpdump (with the -v flag) show the actual bad checksum
within the IP/protocol header itself and what the good check

Instead of showing the difference between a bad checksum and a good
checksum, make tcpdump (with the -v flag) show the actual bad checksum
within the IP/protocol header itself and what the good checksum should
be, e.g. "[bad tcp cksum abcd! -> d1e6]"

This change applies to IP, TCP (over IPv4 and IPv6), UDP (over IPv4 and
IPv6), ICMP, and ICMPv6. This commit also fixes several inconsistencies
in the way bad checksums were displayed for these protocols.

Tested on amd64, i386, and macppc.

ok henning@

show more ...


# 92579f6f 05-Feb-2014 florian <florian@openbsd.org>

Don't segfault on IPv6 NFS traffic; found the hard why by matthieu@.
Fix inspired by what upstream is doing.
Tested by me and matthieu@.
Input^WHand holding and OK guenther@


# 29b017f6 12-Jan-2010 naddy <naddy@openbsd.org>

Add TCP/UDP checksum display for v6 and clean up the checksum
calculation. Mostly from tcpdump.org; ok jsing@


# 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 ...


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

trash $Header goo which is just annoying; 5595


# 02b3961b 13-Dec-2006 itojun <itojun@openbsd.org>

IPv6 passive OS fingerprinting.
reuses IPv4 signature file (assuming that TCP code is shared among IPv4/v6).
mcbride ok.


# 99881865 28-May-2006 moritz <moritz@openbsd.org>

Correct more bounds checks which can lead to crashes.

ok canacar@ deraadt@


# 11a4ff80 16-Sep-2004 markus <markus@openbsd.org>

print th_seq from truncated tcp headers (e.g. in icmp need-frag)


# a9ca1c71 16-Sep-2004 markus <markus@openbsd.org>

add -T tcp to enforce interpretation as TCP


# 9c9eab62 10-Aug-2004 markus <markus@openbsd.org>

print ip/port for truncated tcp packets; ok otto@


# 6e54ab5b 28-Jul-2004 markus <markus@openbsd.org>

print th_seq for -vv; ok hshoexer, henning


# efa29625 15-Jan-2004 markus <markus@openbsd.org>

print tcpmd5 signature options; with/ok itojun


# 328fb3c6 12-Oct-2003 dhartmei <dhartmei@openbsd.org>

Make it compile without INET6, from Max Laier, ok deraadt@


# 821e99ef 21-Aug-2003 frantzen <frantzen@openbsd.org>

print the operating system of TCP SYN packets with the -o option


# 0cd73c57 23-Dec-2001 stevesk <stevesk@openbsd.org>

integrate a patch i did around 1.5 years ago that's already in
tcpdump.org and netbsd. if verbose and TCP RST segment with payload,
print the payload string. Mentat derived stacks may put text stri

integrate a patch i did around 1.5 years ago that's already in
tcpdump.org and netbsd. if verbose and TCP RST segment with payload,
print the payload string. Mentat derived stacks may put text strings
in RST segments. ok jakob@

show more ...


# 5bbef770 25-Jun-2001 itojun <itojun@openbsd.org>

disable smb decoder, as there seems to be fewer bound checks than needed


12