summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* In verbose mode, print the router preference contained in RAs.jca2016-05-061-3/+19
| | | | | | "pref" keyword taken from tcpdump.org. ok mpi@ sthen@ deraadt@
* Move to /dev/bpf; ok lteonatano2016-05-032-12/+6
|
* Add sys/queue.h where it's needed. Unbreak userland following recentsthen2016-04-042-2/+4
| | | | removal from mbuf.h. ok mpi@
* Don't use .Aq for syntax elements that require ASCII "<>".schwarze2016-03-311-4/+4
| | | | | Patch from Christian Heckendorf <mbie at ulmus dot me>. OK jmc@ bentley@
* Properly check for the end of captured packet while printing CDP packets.canacar2016-03-291-9/+37
| | | | ok deraadt@
* o remove legacy code that defines abs(3) if it isn't availablemmcc2016-03-152-14/+32
| | | | | | | | | | | | | | | | 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@
* http -> https for IETF/IANA URLs in commentsmmcc2016-03-072-5/+5
|
* Make tcpdump show details of beacon country elements in verbose mode only.stsp2016-02-211-2/+3
| | | | ok sthen@
* Fix an infinite loop when printing a country element in a managementstsp2016-02-041-2/+4
| | | | | | 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@
* Make tcpdump show 802.11 control frames.stsp2016-02-031-1/+84
| | | | ok kettenis@, and help from David Vasek (thanks!)
* Make tcpdump show 802.11 QoS frames properly.stsp2016-02-011-11/+35
| | | | ok kettenis@
* remove a macro that was made an identity function by my previous commitmmcc2016-01-151-6/+4
| | | | ok deraadt@
* Remove preprocessor conditions (checking for ancient OSs) that try tommcc2016-01-153-38/+7
| | | | | | | divine whether a file handle was generated on the current host. More simplifications to come. supported by deraadt@
* Remove wireless turbo mode support. It is a non-standard extensionstsp2016-01-121-3/+1
| | | | | | 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
* assign pointers to NULL rather than 0mmcc2015-12-224-8/+8
|
* Remove ancient and no longer valid installation instructions.mmcc2015-12-051-54/+1
|
* Remove LBL-specific stuff and a reference to CHANGES.mmcc2015-12-051-29/+1
|
* Remove VERSION, whose contents were simply "3.4".mmcc2015-12-051-1/+0
|
* Remove two sets of NULL-checks before free().mmcc2015-12-052-24/+13
|
* Remove a log of changes from 1991 to 1998.mmcc2015-12-051-515/+0
|
* strings.h -> string.h so that memcpy is declared. ok deraadtmmcc2015-12-051-2/+2
|
* Remove memory.h includes.mmcc2015-11-186-18/+6
| | | | ok deraadt@
* Remove remaining instances of the register keyword.mmcc2015-11-1646-434/+404
| | | | ok deraadt@
* Remove more register keywords.mmcc2015-11-159-71/+71
| | | | ok daniel@, discussed on hackers@
* Ensure the safety of isprint()'s argument. Suggested by guenther@ a fewmmcc2015-11-071-3/+3
| | | | weeks ago.
* Account for the header size when dealing with null link layer ifaces.jca2015-11-051-3/+3
| | | | From Kevin Reay, ok sthen@
* Print unsigned integers as unsigned integers, kill inconsistent casts.jca2015-11-051-6/+5
| | | | Initial diff by Kevin Reay.
* Cap the GRE packet len to tcpdump's snap len, fixes a segfault.jca2015-11-051-1/+4
| | | | From Kevin Reay, ok sthen@
* When fetching the GRE version, use GRE_VERS and not a naked "7" as mask.jca2015-11-051-2/+2
| | | | From Kevin Reay
* spelling; from tjjmc2015-11-051-3/+3
|
* Surround pledge call with blank lines.mmcc2015-11-031-1/+3
|
* Print RDNSS nameserver addresses, and print option names for some othersthen2015-11-021-2/+31
| | | | | known options that we don't otherwise decode yet (DNSSL, route information). ok mpi@
* Remove register keyword uses. Still needs to be done in all othermmcc2015-11-011-46/+46
| | | | | | tcpdump source files. ok kettenis@
* pcap_stat fields are unsigned, print them as suchjca2015-10-281-3/+3
| | | | Patch from Kevin Reay.
* Cast ctype functions' argument to unsigned char.mmcc2015-10-251-7/+7
| | | | ok guenther@
* Carry out additional length/size checks in DECnet packet printing, avoiding asthen2015-10-241-41/+173
| | | | | | 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@
* Add an explicit check for a malformed AS segment with (segment length 0),sthen2015-10-201-5/+8
| | | | | | | | 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").
* Fix a crash that occurs when printing the filename in a malformed NFSlteo2015-10-151-3/+5
| | | | | | | | | request packet. From Kevin Reay who obtained the fix from the tcpdump.org repo (part of commit 6191f36146f5d286304e9b6e893477fe509d83ab). ok canacar@ sthen@
* Remove conditional compilation and #defines around signal handlingguenther2015-10-144-59/+24
| | | | | | | 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@
* Don't use exp2f(), it breaks build on vax. Use a shift instead.stsp2015-10-132-5/+4
| | | | reported by deraadt@
* Fix a copy-pasto: Check the correct bit for STBC beacon in HT OP element.stsp2015-10-121-2/+2
| | | | ok sthen@
* The <ctype.h> is*() interfaces expect EOF or an unsigned char; cast toguenther2015-10-111-2/+3
| | | | | | (unsigned char) as required found by Michael McConville (mmcconv1 (at) sccs.swarthmore.edu) w/Coccinelle
* Make tcpdump(1) print more information from the HT Capabilities element.stsp2015-10-102-4/+85
| | | | tweak + ok sthen@
* Change all tame callers to namechange to pledge(2).deraadt2015-10-092-6/+6
|
* Move from tame "cmsg" to tame "sendfd" or "recvfd", depending on whichderaadt2015-10-061-2/+2
| | | | way the process moves fd's.
* tcpdump is two-process privsep.deraadt2015-10-032-2/+6
| | | | | | | | | | | | | | | the packet processor pid is initialized on a socketpair, and then only does byte analysis. it can be protected using a "stdio" tame request. an successfull attack against it will find it cannot open files nor sockets, and faces various other limitations described in the tame(2) manual page. the monitor process can be restricted to "malloc cmsg inet ioctl dns rpath". that sounds like a large subset, but notice it cannot create or write files. maybe this set can be wittled down by hoisting more initialization code upwards? with help from canacar a while back.
* remove a bsdi ifdef pathjsg2015-10-011-14/+1
| | | | "kill it with fire" deraadt@
* lint is dead: delete the trivial uses of /* VARARGS[0-9]+ */guenther2015-09-271-3/+1
| | | | (others require more care)
* avoid trailing .Ns, reduce .Xo and .Sm, drop redundant .Bkschwarze2015-09-251-13/+4
|
* Avoid .Ns right after .Pf, it's pointless.schwarze2015-09-141-3/+3
| | | | In some cases, do additional cleanup in the immediate vicinity.