summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
AgeCommit message (Collapse)Author
2017-01-20Another ip_ipsp.h missing, found by krw@Claudio Jeker
2016-12-18Remove duplicated lines of code introduced in my previous tcpdump commit.Stefan Sperling
Noticed by claudio@
2016-12-18Make tcpdump show "11n" for a channel which is used in 11n mode.Stefan Sperling
ok mpi@
2016-12-14Sync extern decl of eproto_db with what's in libpcap.Jeremie Courreges-Anglas
For some reason this crashes on armv7. Issue reported by Lars Nooden.
2016-12-13teach tcpdump some more things about gre.David Gwynne
gre can be encapsulated in ipv6. gre can encapsulate ipv6, mpls, and ethernet. nvgre is based on gre, so if the header could be nvgre print the vsid and flow id as well as the key. ok stsp@
2016-12-02Fix some spelling errors in the OpenFlow header and update the tcpdump(8)Rafael Zalamena
ofp_map.c file. ok reyk@
2016-11-28ether_ntoa -> etheraddr_string, like elsewhere in tcpdumpJeremie Courreges-Anglas
openflow part tested by rzalamena@, ok deraadt@
2016-11-25Fix some bad copy paste bits and simplify the ethernet printing function.Rafael Zalamena
ok reyk@
2016-11-22Fix OFP spelling for version bitmap define in ofp header and tcpdump, alsoRafael Zalamena
change the truncation message in hello with the standard one. ok reyk@
2016-11-20Extend the DLT_OPENFLOW header to include the switch datapath id.Reyk Floeter
OK rzalamena@
2016-11-19Make tcpdump indicate basic rates listed in beacons with an asterisk.Stefan Sperling
ok tb@
2016-11-18Add support for printing the missing OpenFlow set-queue action.Rafael Zalamena
2016-11-18Don't print the field 'actions' on features reply, because in the newRafael Zalamena
OpenFlow 1.3.5 it is a reserved field that is not being used.
2016-11-18miss_send_len can also be a CONTROLLER_MAXLEN string not just a number.Reyk Floeter
Requested by rzalamena@
2016-11-18Updates tcpdump's OpenFlow printer to use the string maps from switchdReyk Floeter
(manually synced). Also make the output a bit more like other printers. OK rzalamena@
2016-11-16Add new DLT_OPENFLOW link-type to allow using tcpdump to debug switch(4),Reyk Floeter
eg. tcpdump -y openflow -i switch0 Includes a minor bump for libpcap. Feedback and OK rzalamena@
2016-10-30If a length from an ip packet encapsulated in gre or etherip would causeJonathan Gray
the position to go past snapend truncate. Found with afl.
2016-10-30Replace a snapend test in ip_print() with a call to TCHECK2 as thereJonathan Gray
is already a trunc label with the same printf in the function.
2016-10-28Return early from atalk_print_llap() if the length is less than theJonathan Gray
size of a header to avoid an integer underflow. Found with afl.
2016-10-28Don't assume s->ifname is NUL terminated and printable.Jonathan Gray
As in pfsync_print_clr() use vis(3) in print_state(). This was also found with afl though with a different input.
2016-10-27Don't assume clr->ifname is a NUL-terminated printable string.Todd C. Miller
Use vis(3) to safely print ifname and stop at IFNAMSIZ bytes. Found with afl by jsg@. OK jsg@
2016-10-27Huawei squatted on BGP Path Attribute 30, and Cisco squatted on 31. So,Peter Hessler
IANA moved the Large Communities attribute to 32, which is a nice pun on the problem it is solving.
2016-10-25Add missing OpenBSD keyword in the first line.Rafael Zalamena
2016-10-22Teach tcpdump(8) how to read OpenFlow packets. This initial implementationRafael Zalamena
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@
2016-10-13Teach tcpdump to decode bgp path attribute draft-ietf-idr-large-communityPeter Hessler
Patch from Job Snijders, thanks! OK sthen@
2016-10-08Make tcpdump show MCS stored in radiotap's rate field.Stefan Sperling
ok kettenis@
2016-09-02Make tcpdump print details about association requests in verbose mode.Stefan Sperling
Refactor such that we can share some of the code for beacon printing. ok sthen@
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