summaryrefslogtreecommitdiffstats
path: root/usr.sbin/tcpdump (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix OFP spelling for version bitmap define in ofp header and tcpdump, alsorzalamena2016-11-221-3/+3
| | | | | | change the truncation message in hello with the standard one. ok reyk@
* Extend the DLT_OPENFLOW header to include the switch datapath id.reyk2016-11-201-8/+9
| | | | OK rzalamena@
* Make tcpdump indicate basic rates listed in beacons with an asterisk.stsp2016-11-191-3/+5
| | | | ok tb@
* Add support for printing the missing OpenFlow set-queue action.rzalamena2016-11-181-2/+17
|
* Don't print the field 'actions' on features reply, because in the newrzalamena2016-11-181-3/+3
| | | | OpenFlow 1.3.5 it is a reserved field that is not being used.
* miss_send_len can also be a CONTROLLER_MAXLEN string not just a number.reyk2016-11-181-3/+5
| | | | Requested by rzalamena@
* Updates tcpdump's OpenFlow printer to use the string maps from switchdreyk2016-11-184-88/+586
| | | | | | (manually synced). Also make the output a bit more like other printers. OK rzalamena@
* Add new DLT_OPENFLOW link-type to allow using tcpdump to debug switch(4),reyk2016-11-164-15/+53
| | | | | | | | eg. tcpdump -y openflow -i switch0 Includes a minor bump for libpcap. Feedback and OK rzalamena@
* If a length from an ip packet encapsulated in gre or etherip would causejsg2016-10-301-1/+3
| | | | the position to go past snapend truncate. Found with afl.
* Replace a snapend test in ip_print() with a call to TCHECK2 as therejsg2016-10-301-5/+2
| | | | is already a trunc label with the same printf in the function.
* Return early from atalk_print_llap() if the length is less than thejsg2016-10-281-1/+6
| | | | | size of a header to avoid an integer underflow. Found with afl.
* Don't assume s->ifname is NUL terminated and printable.jsg2016-10-281-3/+9
| | | | | As in pfsync_print_clr() use vis(3) in print_state(). This was also found with afl though with a different input.
* Don't assume clr->ifname is a NUL-terminated printable string.millert2016-10-271-3/+11
| | | | | Use vis(3) to safely print ifname and stop at IFNAMSIZ bytes. Found with afl by jsg@. OK jsg@
* Huawei squatted on BGP Path Attribute 30, and Cisco squatted on 31. So,phessler2016-10-271-3/+4
| | | | | IANA moved the Large Communities attribute to 32, which is a nice pun on the problem it is solving.
* Add missing OpenBSD keyword in the first line.rzalamena2016-10-251-1/+1
|
* Teach tcpdump(8) how to read OpenFlow packets. This initial implementationrzalamena2016-10-224-5/+1179
| | | | | | | | | | | 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@
* Teach tcpdump to decode bgp path attribute draft-ietf-idr-large-communityphessler2016-10-131-2/+19
| | | | | | Patch from Job Snijders, thanks! OK sthen@
* Make tcpdump show MCS stored in radiotap's rate field.stsp2016-10-081-3/+8
| | | | ok kettenis@
* Make tcpdump print details about association requests in verbose mode.stsp2016-09-021-17/+61
| | | | | Refactor such that we can share some of the code for beacon printing. ok sthen@
* Use long labs(3) for pointer arithmetic.bluhm2016-07-281-2/+2
| | | | Found by David Hill with clang.
* err() instead of errx(); noted by timderaadt2016-07-251-3/+2
|
* Split the root vs not-root cases better with regards to chroot setup.deraadt2016-07-241-9/+12
| | | | ok kettenis benno tedu canacar
* 2004 privsep caused "tcpdump -r" to became a priviledged operation becausederaadt2016-07-211-32/+20
| | | | | | | | | | | 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
* Teach tcpdump to recognize MPLS pseudowire with control words. Addedrzalamena2016-07-113-18/+64
| | | | | | support to print encapsulated ethernet packets as well. "Looks good" deraadt@
* Use /dev/bpf0 instead of /dev/bpf (without loop though), as suggested bynatano2016-05-082-5/+5
| | | | | | sthen@. to make remote upgrades without media less painful. ok tb@
* Print RA Route Information prefix, preference and lifetime.jca2016-05-071-2/+41
| | | | ok mpi@
* 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@