summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
AgeCommit message (Collapse)Author
2016-07-28Use long labs(3) for pointer arithmetic.Alexander Bluhm
Found by David Hill with clang.
2016-07-25err() instead of errx(); noted by timTheo de Raadt
2016-07-24Split the root vs not-root cases better with regards to chroot setup.Theo de Raadt
ok kettenis benno tedu canacar
2016-07-212004 privsep caused "tcpdump -r" to became a priviledged operation becauseTheo de Raadt
we felt chroot-containment was also necessary for off-line analysis. Today use of pledge "stdio" for the packet parser acts as an even better sandbox. We can therefore silently ignore chroot setup failure, and regain tcpdump -r support. Result of a discussion with tedu -- which probably happened because we became aware of the laughable retarded -Z option in upstream tcpdump. ok tedu sthen guenther stsp
2016-07-11Teach tcpdump to recognize MPLS pseudowire with control words. AddedRafael Zalamena
support to print encapsulated ethernet packets as well. "Looks good" deraadt@
2016-05-08Use /dev/bpf0 instead of /dev/bpf (without loop though), as suggested byMartin Natano
sthen@. to make remote upgrades without media less painful. ok tb@
2016-05-07Print RA Route Information prefix, preference and lifetime.Jeremie Courreges-Anglas
ok mpi@
2016-05-06In verbose mode, print the router preference contained in RAs.Jeremie Courreges-Anglas
"pref" keyword taken from tcpdump.org. ok mpi@ sthen@ deraadt@
2016-05-03Move to /dev/bpf; ok lteoMartin Natano
2016-04-04Add sys/queue.h where it's needed. Unbreak userland following recentStuart Henderson
removal from mbuf.h. ok mpi@
2016-03-31Don't use .Aq for syntax elements that require ASCII "<>".Ingo Schwarze
Patch from Christian Heckendorf <mbie at ulmus dot me>. OK jmc@ bentley@
2016-03-29Properly check for the end of captured packet while printing CDP packets.Can Erkin Acar
ok deraadt@
2016-03-15 o remove legacy code that defines abs(3) if it isn't availablemmcc
o inline an ugly and potentially risky macro of the form: #define x if (a) b; else o fix a >21 y.o. bug resulting from someone writing: puts("[nothing to parse], stdout"); when they meant: fputs("[nothing to parse]", stdout); ok canacar@
2016-03-07http -> https for IETF/IANA URLs in commentsmmcc
2016-02-21Make tcpdump show details of beacon country elements in verbose mode only.Stefan Sperling
ok sthen@
2016-02-04Fix an infinite loop when printing a country element in a managementStefan Sperling
frame in case we hit channel Tx power limits we can't pretty-print. Also ensure we consume the last item in this list. ok sthen@
2016-02-03Make tcpdump show 802.11 control frames.Stefan Sperling
ok kettenis@, and help from David Vasek (thanks!)
2016-02-01Make tcpdump show 802.11 QoS frames properly.Stefan Sperling
ok kettenis@
2016-01-15remove a macro that was made an identity function by my previous commitmmcc
ok deraadt@
2016-01-15Remove preprocessor conditions (checking for ancient OSs) that try tommcc
divine whether a file handle was generated on the current host. More simplifications to come. supported by deraadt@
2016-01-12Remove wireless turbo mode support. It is a non-standard extensionStefan Sperling
which only worked with ath(4) devices from a decade ago. Diff tested on ath(4) hardware by me to verify that 11a/b modes still work. ok reyk deraadt chris sthen kettenis
2015-12-22assign pointers to NULL rather than 0mmcc
2015-12-05Remove ancient and no longer valid installation instructions.mmcc
2015-12-05Remove LBL-specific stuff and a reference to CHANGES.mmcc
2015-12-05Remove VERSION, whose contents were simply "3.4".mmcc
2015-12-05Remove two sets of NULL-checks before free().mmcc
2015-12-05Remove a log of changes from 1991 to 1998.mmcc
2015-12-05strings.h -> string.h so that memcpy is declared. ok deraadtmmcc
2015-11-18Remove memory.h includes.mmcc
ok deraadt@
2015-11-16Remove remaining instances of the register keyword.mmcc
ok deraadt@
2015-11-15Remove more register keywords.mmcc
ok daniel@, discussed on hackers@
2015-11-07Ensure the safety of isprint()'s argument. Suggested by guenther@ a fewmmcc
weeks ago.
2015-11-05Account for the header size when dealing with null link layer ifaces.Jeremie Courreges-Anglas
From Kevin Reay, ok sthen@
2015-11-05Print unsigned integers as unsigned integers, kill inconsistent casts.Jeremie Courreges-Anglas
Initial diff by Kevin Reay.
2015-11-05Cap the GRE packet len to tcpdump's snap len, fixes a segfault.Jeremie Courreges-Anglas
From Kevin Reay, ok sthen@
2015-11-05When fetching the GRE version, use GRE_VERS and not a naked "7" as mask.Jeremie Courreges-Anglas
From Kevin Reay
2015-11-05spelling; from tjJason McIntyre
2015-11-03Surround pledge call with blank lines.mmcc
2015-11-02Print RDNSS nameserver addresses, and print option names for some otherStuart Henderson
known options that we don't otherwise decode yet (DNSSL, route information). ok mpi@
2015-11-01Remove register keyword uses. Still needs to be done in all othermmcc
tcpdump source files. ok kettenis@
2015-10-28pcap_stat fields are unsigned, print them as suchJeremie Courreges-Anglas
Patch from Kevin Reay.
2015-10-25Cast ctype functions' argument to unsigned char.mmcc
ok guenther@
2015-10-24Carry out additional length/size checks in DECnet packet printing, avoiding aStuart Henderson
segfault with malformed packets. Adapted from f61639179282 in tcpdump.org git by Kevin Reay, but not including the header no-copy optimization that was in the upstream patch. ok benno@
2015-10-20Add an explicit check for a malformed AS segment with (segment length 0),Stuart Henderson
avoiding division by zero when deciding whether it contains 2- or 4-byte ASNs. Refactor TCHECK calls to ensure proper coverage. From Kevin Reay, ok canacar with wording tweak (I used "malformed" rather than canacar's suggested "invalid size" or Kevin's original "empty").
2015-10-15Fix a crash that occurs when printing the filename in a malformed NFSLawrence Teo
request packet. From Kevin Reay who obtained the fix from the tcpdump.org repo (part of commit 6191f36146f5d286304e9b6e893477fe509d83ab). ok canacar@ sthen@
2015-10-14Remove conditional compilation and #defines around signal handlingPhilip Guenther
Don't catch signals that were ignored on entry Suppress SIGCHLD if our kid is stopped: we don't care and it's not an error ok millert@
2015-10-13Don't use exp2f(), it breaks build on vax. Use a shift instead.Stefan Sperling
reported by deraadt@
2015-10-12Fix a copy-pasto: Check the correct bit for STBC beacon in HT OP element.Stefan Sperling
ok sthen@
2015-10-11The <ctype.h> is*() interfaces expect EOF or an unsigned char; cast toPhilip Guenther
(unsigned char) as required found by Michael McConville (mmcconv1 (at) sccs.swarthmore.edu) w/Coccinelle
2015-10-10Make tcpdump(1) print more information from the HT Capabilities element.Stefan Sperling
tweak + ok sthen@