summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
AgeCommit message (Collapse)Author
2008-12-05add ethertype and tcpdump support for VLAN stacking (QinQ) withStuart Henderson
type number 0x88a8 specified by 802.1ad. from reyk on misc@. "ok, go for it" dlg
2008-11-29revert my last change -Reyk Floeter
the xauth vendor id is a hash of "draft-ietf-ipsra-isakmp-xauth-06.txt" and defined in the document "draft-ietf-ipsec-isakmp-xauth-06.txt".
2008-11-29fix typo in 'draft-ietf-ipsec-isakmp-xauth-06.txt'Reyk Floeter
ok hshoexer@
2008-10-22fix format of AS number outputJoerg Goltermann
ok henning@
2008-10-16Add support for IEEE "slow protocols" LACP, MARKER as per 802.3ad.Marco Pfatschbacher
Code from tcpdump.org with cleanup and shrinkage by me. Help and ideas for extra sanity checks from canacar@ OK canacar@
2008-10-10Fix -X output of ppp packets. Inspired by PR4624 and especially the patchClaudio Jeker
provided by canacar@. I just modified it a bit to skip the data link proto number as well. OK deraadt@
2008-09-19Merge printb() fix from ifconfig.c -r 1.157:Marco Pfatschbacher
Don't increment a pointer *before* testing it for NULL. OK canacar@
2008-06-27More removal of clauses 3 and 4 from NetBSD licenses.Ray Lai
OK deraadt@ and millert@
2008-06-16use correct struct when checking DF or INET6, ok frantzen@ months agoDavid Krause
forgotten in one of my trees
2008-05-29Second half of PF state table rearrangement.Ryan Thomas McBride
- Mechanical change: Use arrays for state key pointers in pf_state, and addr/port in pf_state_key, to allow the use of indexes. - Fix NAT, pfsync, pfctl, and tcpdump to handle the new state structures. In struct pfsync_state, both state keys are included even when identical. - Also fix some bugs discovered in the existing code during testing. (in particular, "block return" for TCP packets was not returning an RST) ok henning beck deraadt tested by otto dlg beck laurent Special thanks to users Manuel Pata and Emilio Perea who did enough testing to actually find some bugs.
2008-05-09Don't just ntohl() the hours, but everything of the stateMarco Pfatschbacher
creation time. OK mcbride@, henning@.
2008-04-21add a short section on checksum offloading, based on a diffJason McIntyre
from Alf Schlichting; help/ok henning
2008-04-18add filtering on direction; ok mpf@ deraadt@ feedback jmc@Damien Miller
2008-03-24msg_controllen has to be CMSG_SPACE so that the kernel can account forTheo de Raadt
each cmsg_len (ie. msg_controllen = sum of CMSG_ALIGN(cmsg_len). This works now that kernel fd passing has been fixed to accept a bit of sloppiness because of this ABI repair. lots of discussion with kettenis
2008-03-15Repair the simple cases for msg_controllen where it should just beTheo de Raadt
CMSG_SIZE(sizeof(int)), not sizeof(buffer) which may be larger because of alignment; ok kettenis hshoexer
2008-03-13Correct CMSG_SPACE and CMSG_LEN usage everywhere in the tree. Due toTheo de Raadt
an extensive discussion with otto, kettenis, millert, and hshoexer
2008-01-17add basic snmpv2 support (snmpv2, trapv2, getbulk)Reyk Floeter
ok canacar@
2007-11-27typos; ok jmc@Martynas Venckus
sys/dev/pci/pciide.c from naddy@
2007-11-26typos; ok jmc@Martynas Venckus
sys/netinet/in_pcb.c and sys/net/bridgestp.c ok henning@ sys/dev/pci/bktr/* ok jakemsr@
2007-10-30fix printing of enterprise-specific SNMP traps.Reyk Floeter
ok claudio@ mglocker@
2007-10-26Fix alignment issues on sparc64. Fixes pr 5608.Moritz Jodeit
ok canacar@
2007-10-07trash $Header goo which is just annoying; 5595Theo de Raadt
2007-10-04Handle CARP for IPv6. Reported and tested by todd@Can Erkin Acar
ok todd@, henning@
2007-09-21typo: print hexdump of packet, instead of pcap header; ok canacar, henningMarkus Friedl
2007-08-28add -I option for printing the interfaces;Markus Friedl
ok hshoexer, henning, mcbridge (some time ago)
2007-08-14Fix Segmentation fault for tcpdump when used in combination withMarcus Glocker
``-v -y IEEE802_11'', and ``-v -y IEEE802_11_RADIO''. The snaplen was passed instead of the real packet size at some point, which caused tcpdump todo tcp checksum verifications on packets where it shouldn't. Diff from canacar@ and me, tested by canacar@, reyk@, and me. OK canacar@ reyk@
2007-08-13No need to #include <netinet/in.h> twice. Noticed by Diego Casati.Kenneth R Westerback
ok stevesk@
2007-07-21s/ETHERTYPE_EAPOL/ETHERTYPE_PAE/ to be in line with src/sys/net/ethertypes.hDamien Bergamini
also, ETHERTYPE_PAE is the name used in the 802.1X standard. pointed out by jsg@
2007-07-09Handle IPv6 on PPP printer, from Stuart HendersonCan Erkin Acar
2007-07-02Display payload for DS to DS and NO DS traffic.Can Erkin Acar
ok reyk@, looks ok damien@
2007-06-29make it easy to spot wich nfs version the traffic is.Thordur I. Bjornsson
input & OK canacar@
2007-06-27When aligning buffers correctly handle the case where theCan Erkin Acar
buffers overlap, which happens on 64 bit archs, when handling encapsulated packets. Reported and tested by Jurjen Oskam additional testing by Stuart Henderson and todd@, ok henning@
2007-06-21Print leading zeros in MAC addresses. Initial diff from StanislavRay Lai
Kruchinin, idea to use ether_ntoa from Claudio Jeker. OK canacar, idea OK henning, jasper, and tedu.
2007-06-14Print communities in a nicer format and include a missing well-known one.Claudio Jeker
This is mostly from Stuart Henderson. OK canacar@
2007-06-14The External Route Tag for AS-External-LSAs can be an arbitrary 32bitReyk Floeter
value and doesn't need to be an IPv4 address. It is more like a vendor-specific field. as discussed with claudio after looking into rfc2328
2007-06-04do not inlcude ipx headersHenning Brauer
2007-06-03unbreak 802.11 element parsing by using the TCHECK2 macro correctlyReyk Floeter
ok claudio@
2007-06-01Move a useless warning to the only case that uses it (-f) from canacar@Todd T. Fries
ok beck@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-31pf_state is no longer the same; modify pf_print_state.c to acceptRyan Thomas McBride
pfsync_state (as in pfctl, but in network byte order). ok henning@ toby@ pyr@
2007-05-29Do not change snaplen when parsing a netflow packetCan Erkin Acar
2007-05-27Additional truncation checks, mostly from tcpdump.org,Can Erkin Acar
and remove some unused hlen assignments found by lint from Stuart Henderson, reviewed by me, ok henning@ claudio@
2007-05-06Don't fail hard on non RH0 routing headers. The calculation of the lengthClaudio Jeker
of RH headers is always the same. Now tcpdump just prints the type, length and segleft headers for unknown headers. OK henning@ mcbride@
2007-05-06Fix the out of bounds check when parsing IPv6 headers. Fixes a SIGSEGVClaudio Jeker
when parsing IPv6 headers with unknown or corrupted header options. OK henning@ mcbride@
2007-03-27Fix aligenment issues by using bcopy() and a local variable instead of theClaudio Jeker
problematic *(u_intXX_t*)t casts. This fixes the bus errors I got on sparc64 while doing IEEE802_11_RADIO dumps. OK reyk@ mglocker@
2007-03-26Print the reason code of deauth and disassociation packets if in verbose mode.Claudio Jeker
This helps debugging issues with stations that fail to join a network. OK mglocker@, reyk@, jsg@
2007-03-16Recognise more vendor payloads (taken from IKE Scan)Tom Cosgrove
2007-02-23register is so 1980, plus knfTheo de Raadt
2007-01-08c should be u_char for printing option numbers. fix parameter requestKevin Steves
list option numbers >127 being negative. ok krw@
2007-01-02define bpf filters to match address and header fields in IEEE 802.11Reyk Floeter
wlan frames (DLT_IEEE802_11 and DLT_IEEE802_11_RADIO linktypes). see tcpdump(8) for details. "Works for me" claudio@ ok jmc@ deraadt@