summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump/print-tcp.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* - (void)printf() -> printf(); the cast adds clutter for little value.procter2020-01-241-65/+65
| | | | | | | | | | - 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
* Remove #ifdef INET6kn2018-10-221-43/+4
| | | | | | | | | | | | 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
* Add new DLT_OPENFLOW link-type to allow using tcpdump to debug switch(4),reyk2016-11-161-2/+2
| | | | | | | | eg. tcpdump -y openflow -i switch0 Includes a minor bump for libpcap. Feedback and OK rzalamena@
* Teach tcpdump(8) how to read OpenFlow packets. This initial implementationrzalamena2016-10-221-1/+8
| | | | | | | | | | | 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@
* Remove remaining instances of the register keyword.mmcc2015-11-161-15/+14
| | | | ok deraadt@
* Print unsigned integers as unsigned integers, kill inconsistent casts.jca2015-11-051-6/+5
| | | | Initial diff by Kevin Reay.
* stdlib.h is in scope; do not cast malloc/calloc/realloc*deraadt2015-08-201-3/+2
| | | | ok millert krw
* 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-3/+1
|
* Instead of showing the difference between a bad checksum and a goodlteo2014-06-201-9/+13
| | | | | | | | | | | | | | 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@
* Don't segfault on IPv6 NFS traffic; found the hard why by matthieu@.florian2014-02-051-5/+3
| | | | | | Fix inspired by what upstream is doing. Tested by me and matthieu@. Input^WHand holding and OK guenther@
* Add TCP/UDP checksum display for v6 and clean up the checksumnaddy2010-01-121-19/+45
| | | | calculation. Mostly from tcpdump.org; ok jsing@
* rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andderaadt2009-10-271-6/+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
* trash $Header goo which is just annoying; 5595deraadt2007-10-071-2/+2
|
* IPv6 passive OS fingerprinting.itojun2006-12-131-14/+21
| | | | | reuses IPv4 signature file (assuming that TCP code is shared among IPv4/v6). mcbride ok.
* Correct more bounds checks which can lead to crashes.moritz2006-05-281-5/+5
| | | | ok canacar@ deraadt@
* print th_seq from truncated tcp headers (e.g. in icmp need-frag)markus2004-09-161-2/+5
|
* add -T tcp to enforce interpretation as TCPmarkus2004-09-161-3/+4
|
* print ip/port for truncated tcp packets; ok otto@markus2004-08-101-9/+25
|
* print th_seq for -vv; ok hshoexer, henningmarkus2004-07-281-3/+3
|
* print tcpmd5 signature options; with/ok itojunmarkus2004-01-151-2/+11
|
* Make it compile without INET6, from Max Laier, ok deraadt@dhartmei2003-10-121-3/+7
|
* print the operating system of TCP SYN packets with the -o optionfrantzen2003-08-211-2/+38
|
* integrate a patch i did around 1.5 years ago that's already instevesk2001-12-231-6/+51
| | | | | | 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@
* disable smb decoder, as there seems to be fewer bound checks than neededitojun2001-06-251-2/+4
|
* smb printing; from Andrew Tridgell; via tcpdump.orgmickey2000-12-071-5/+9
|
* tcpdump incorrectly print port numbers when parsing NFS (PR#1540)jakob2000-12-051-22/+20
| | | | fix submitted by Grigoriy Orlov <gluk@ptci.ru>
* Compile with -Wall. Add $OpenBSD$. (jakob@ ok)ho2000-10-031-4/+6
|
* INET6jakob2000-04-261-8/+176
| | | | | | DHCP/BOOTP tcp & udp checksum detection numerous bugfixes
* BGP support (from KAME/WIDE). INET6 parts not done yet.jakob2000-01-161-1/+14
|
* fix error where SACKs were not printed with absolute sequence numbersprovos1999-11-261-2/+2
|
* add braces to avoid ambiguous elsebrad1999-09-161-3/+4
|
* - Merge some changes from tcpdump 3.4jakob1999-07-281-2/+17
| | | | | | | | | | | | | | | -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@
* make tcpdump aware of SACK (RFC 2018), loosely based on a patch fromprovos1998-09-221-15/+34
| | | | hari@cs.berkeley.edu.
* *** empty log message ***bitblt1996-12-121-61/+63
|
* it is 3.2 now.mickey1996-07-131-89/+143
|
* sync to latestderaadt1996-06-101-7/+32
|
* Updating to the latest LBL release.mickey1996-03-041-2/+3
| | | | Sun's SKIP support added.
* initial import of NetBSD treederaadt1995-10-181-0/+278