summaryrefslogtreecommitdiff
path: root/usr.sbin/tcpdump
AgeCommit message (Collapse)Author
2011-03-28tweak previous;Jason McIntyre
2011-03-28Add a couple of examples on tcpflags and icmptype filtersgiovanni
ok claudio@
2011-03-22Don't be to strict when checking the length of an ospf packet.Claudio Jeker
Allow for padding bytes in the IP packet (length > ntohs(op->ospf_len)) but report both length in that case. OK sthen@, deraadt@
2011-02-07Between groff-1.15 and groff-1.20.1, the .Ns macro was changed to noIngo Schwarze
longer suppress spacing when used at the beginning of an input line, and mandoc now follows the same behaviour as new groff. Thus, sweep the tree and remove useless .Ns. Most places found by jmc@; ok jmc@ kristaps@.
2010-11-12The ioctl to show states returns a pfsync_state which is in network byteClaudio Jeker
order and therefore a ntohs is needed to show the rdomain correctly. OK henning@ dlg@
2010-11-04Sync with tcpdump.org to fix multicast DNS support, and get someCan Erkin Acar
other updates in the process. Initial report/patch from Christiano F. Haesbaert. Ok matthew@
2010-10-18Revert non-compatible and undocumented bullshit commited by 3 developersTheo de Raadt
who decided to just do it on their own. henning, mcbride, jsing -- shame on you -- if you had shown this diff to just 1 other network developer, the astounding mistake in it would have been noticed. Start practicing inclusionary development instead of going alone. ok claudio
2010-10-17Add quirks support to operating system fingerprinting. tcpdump partJoel Sing
by mcbride@. ok mcbride@ henning@
2010-10-09Do not use BPF_WORDALIGN when computing pflog header length as it alignsCan Erkin Acar
to 8-byte boundary on 64-bit architectures. Instead explicitly round up to a 4-byte boundary. Reported and tested by sthen@
2010-09-21when a packet has had addresses and/or ports rewritten, show the originalHenning Brauer
addresses/ports too. ok ryan dlg
2010-09-21temporary hack to raise snaplen for pflog so that pflog header, ip headerHenning Brauer
and protocol header actually fit in the common cases. stays until canacar tells us how to do it right ;) ok dlg ryan
2010-09-07fix a formatting issue for -E;Jason McIntyre
2010-08-19Correctly decode and print access point names.Joel Sing
2010-08-04Print the MTU in OSPF dd packets. Borrowed from the ospf6 printer.Stuart Henderson
ok claudio@ deraadt@
2010-08-03Fix a usage of logical and where binary and was intended.Jonathan Gray
Spotted by Mike Belopuhov. ok jsing@ deraadt@
2010-06-30Print MPLS label as decimal and not hex. All other places we print MPLSClaudio Jeker
labels we use decimal. OK jsg@ deraadt@
2010-06-26remove support for the old pflog format, replaced in 2003Henning Brauer
ok ryan theo & herr reyksminister
2010-06-07minimal decode support for IKEv2 exchange types and payloads.Jonathan Gray
ok deraadt@ sthen@
2010-04-06Add support for decoding MLDv2 initially from tcpdump.org via FreeBSD,Jonathan Gray
cleaned up to be less gross after some suggestions from stsp. ok stsp@
2010-01-20Print RFC3947 NAT Original Address (NAT-OA) payloads, they're a subsetStuart Henderson
of the id payload, so using the existing id printer. ok dlg@
2010-01-17add a printer for IPV6CP (IPv6 Control Protocol); ok sthen@Christian Weisgerber
2010-01-17* remove a nonsensical print statement left over since antiquityChristian Weisgerber
ok yasuoka@ * add many missing truncation checks and don't output control characters to the terminal ok sthen@
2010-01-14Include the link-level header in the hex output if both the -x and -eJoel Sing
options are specified. ok claudio@ sthen@ deraadt@ jmc@
2010-01-13revert previous and allow reading the last element of the array; ok deraadt@Christian Weisgerber
2010-01-12Add TCP/UDP checksum display for v6 and clean up the checksumChristian Weisgerber
calculation. Mostly from tcpdump.org; ok jsing@
2010-01-03blank lines not allowed outside literal context;Ingo Schwarze
syntax errors found by mandoc(1), also required to fix the mandoc build; ok jmc@
2009-12-03Adjust pflog BPF descriptions, problem pointed out by jmc@Stuart Henderson
- sync actions with PF changes (pass/block/match not just pass/block, and remove some binat/nat/rdr entries) - list all reason codes in tcpdump(8) ok henning jmc
2009-11-27Print outer ipv6 addresses for encapsulated packets only if tcpdumpAlexander Bluhm
is run with -v. This behavior is analog to ipv4. ok mpf@ todd@
2009-11-12for packets with unknown payloads (outside the range of our knowledge) simplyTheo de Raadt
treat them the same as truncated packets ok sthen
2009-11-12fix read-one-beyond-of-array errors; ok sthen jsgTheo de Raadt
2009-11-11Don't leak memory in error case.Jonathan Gray
Found by parfait.
2009-11-09the new protocol moved insert and update.David Gwynne
2009-11-04Add support to tcpdump for decoding the GPRS Tunnelling Protocol (GTP),Joel Sing
used to carry GPRS data over IP for GSM and UMTS networks. The decoder understands GTPv0, GTPv0', GTPv1-C, GTPv1-U and GTPv1' traffic, however at this stage not all TLV fields are fully decoded. This work has been kindly sponsored by SystemNet AS (www.systemnet.no). "commit" deraadt@
2009-11-04Sort port numbers and fix indentation.Joel Sing
2009-11-03rtables are stacked on rdomains (it is possible to have multiple routingClaudio Jeker
tables on top of a rdomain) but until now our code was a crazy mix so that it was impossible to correctly use rtables in that case. Additionally pf(4) only knows about rtables and not about rdomains. This is especially bad when tracking (possibly conflicting) states in various domains. This diff fixes all or most of these issues. It adds a lookup function to get the rdomain id based on a rtable id. Makes pf understand rdomains and allows pf to move packets between rdomains (it is similar to NAT). Because pf states now track the rdomain id as well it is necessary to modify the pfsync wire format. So old and new systems will not sync up. A lot of help by dlg@, tested by sthen@, jsg@ and probably more OK dlg@, mpf@, deraadt@
2009-10-28a few leftovers from yesterday's SCCS/RCS-ID removal;Ingo Schwarze
survived a full make build on i386; "sure" deraadt@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-09-08Make the BGP OPEN capability parser RFC 5492 compliant. While there addClaudio Jeker
additional checks to make sure the known capabilities are correctly encoded and not truncated. Help and OK sthen@
2009-09-07Teach the printer about capabilities, new cease codes, end-of-rib marker,Stuart Henderson
and handle 32-bit ASN. ok claudio@
2009-08-25djm accidentally changed the type of dirfilt in the prototypesJonathan Gray
of pcap_live and priv_pcap_live in rev 1.6 to differ from the implementations, change the type back to what it was. ok djm@
2009-07-30add missing " when printing an error string. ok henning@Stuart Henderson
2009-07-12don't cast lvalue, no binary change.Jonathan Gray
2009-05-25add a missing check for truncated dport in the returned UDP header forStuart Henderson
ICMP_UNREACH_PORT. from Peter J. Philipp, ok jsing@. Closes system/6149.
2009-04-17correcto in comment; from Amarendra GodboleJason McIntyre
2009-04-06teach tcpdump about match rulesHenning Brauer
2009-03-31do not include space in the end of the from for a hmac. after discussionDavid Gwynne
with deraadt@, mcbride@, and mpf@ it is obvious that a hmac doesnt make sense for pfsync. this also firms up some of the input parsing so it handles short frames a bit better.
2009-03-04print alarm condition from leap indicator; ok henning@ otto@Kevin Steves
2009-02-23better detect short frames. always print the version and length of theDavid Gwynne
frame according to the pfsync header. dont try to parse an unsupported version of the protocol.
2009-02-18Print spi in lowercase hex for consistency with print-enc.c and ipsecctl.Ryan Thomas McBride
ok hshoexer msf
2009-02-16pfsync v5, mostly written at n2k9, but based on work done at n2k8.David Gwynne
WARNING: THIS BREAKS COMPATIBILITY WITH THE PREVIOUS VERSION OF PFSYNC this is a new variant of the protocol and a large reworking of the pfsync code to address some performance issues. the single largest benefit comes from having multiple pfsync messages of different types handled in a single packet. pfsyncs handling of pf states is highly optimised now, along with packet parsing and construction. huggz for beck@ for testing. huge thanks to mcbride@ for his help during development and for finding all the bugs during the initial tests. thanks to peter sutton for letting me get credit for this work. ok beck@ mcbride@ "good." deraadt@