summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
| * update the LMP test case for a Windows buildDenis Ovsienko2015-01-041-1/+6
| | | | | | | | This is a side trip of GH #418.
| * ICMPv6: fix RPL DAGID printing (GH #418)Denis Ovsienko2015-01-034-4/+4
| | | | | | | | | | | | | | Allow an extra byte in the buffer for snprintf()'s null character, otherwise it does not work as intended (issue spotted by Gisle Vanem on Windows, where snprintf() behaviour seems to be different). Update the tests.
| * add a comment to print-openflow-1.0.cDenis Ovsienko2015-01-011-0/+10
| |
| * skip some tests when compiled with CapsicumDenis Ovsienko2014-12-302-5/+18
| | | | | | | | | | | | | | When compiled with Capsicum, tcpdump -E 'file filename' fails to read the secret from the file with the "Not permitted in capability mode" error and exits with code 3. Skip respective tests until this logic is handled in a better way.
| * fix compilation on FreeBSD 10.1Denis Ovsienko2014-12-291-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit 05d7191 fixed detection of Capsicum availability and the Capsicum-specific code in tcpdump made it into the compilation process on respective FreeBSD systems. However, it would fail to compile at least on FreeBSD 10.1-RELEASE as quoted below. This commit fixes it. In file included from ./tcpdump.c:89: /usr/include/net/bpf.h:65:8: error: redefinition of 'bpf_program' struct bpf_program { ^ ../libpcap/pcap/bpf.h:106:8: note: previous definition is here struct bpf_program { ^ In file included from ./tcpdump.c:89: /usr/include/net/bpf.h:1206:8: error: redefinition of 'bpf_insn' struct bpf_insn { ^ ../libpcap/pcap/bpf.h:1466:8: note: previous definition is here struct bpf_insn { ^ 2 errors generated.
| * Assume non-buggy getaddrinfo() when cross-compiling.Guy Harris2014-12-192-2/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | The cross target is probably some flavor of Linux (this includes Android) or *BSD (or maybe iOS if you're building for a jailbroken system), and those should have non-buggy getaddrinfo(). If somebody's cross-compiling for a target with a buggy getaddrinfo(), and tcpdump incorrectly converting IPv6 addresses to host names causes the universe to collapse into a giant black hole or something equally horrible, too bad. Expand a comment while we're at it.
| * Regenerate configure script.Guy Harris2014-12-192-5/+7
| |
| * Don't check for cap_rights_init().Guy Harris2014-12-191-2/+7
| | | | | | | | | | It's a macro, wrapping another function, in at least some versions of FreeBSD, and AC_CHECK_FUNCS() doesn't handle that.
| * Clean up bounds checking.Guy Harris2014-12-194-43/+80
| | | | | | | | | | Fix link-layer header length for Cisco-style encapsulation while we're at it.
| * update a comment: TCP Fast Open is now an RFCDenis Ovsienko2014-12-191-1/+1
| |
| * Only print the incorporated IP packet if there is one.Guy Harris2014-12-191-7/+5
| | | | | | | | | | | | Check for the ICMP types that *do* include an IP packet, rather than checking for a set that doesn't. This does a better job of handling unknown ICMP types.
| * Dissect the IPv4 header if the version is wrong, but fix the messages.Guy Harris2014-12-191-3/+3
| |
| * Don't dissect a header with a version field != 4.Guy Harris2014-12-181-1/+2
| | | | | | | | Also, clean up the message printed when it's 6.
| * Always fill in the buffer on a successful return from decode_rt_routing_info().Guy Harris2014-12-181-2/+4
| |
| * Clean up length checks.Guy Harris2014-12-181-1/+14
| | | | | | | | | | | | | | | | | | Check only the amount of length that matters at any given point; yes, this means we do multiple checks, but so it goes. We don't need to check for LLC+SNAP - llc_print() does that for us. We do, however, need to check to make sure we can safely skip the Fore header.
| * Fix length checking.Guy Harris2014-12-181-4/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | Check both the captured length and the on-the-wire length (the latter *should* be greater than or equal to the former, but that's not guaranteed). Add some additional length checks, so neither caplen nor length underflow. If we stop dissecting because the packet is too short, return 1, not 0, as we've "dissected" what we can; 0 means "this is LLC+SNAP with an OUI of 0 and an unknown Ethertype".
| * Do more length checking. From OpenBSD.Guy Harris2014-12-181-1/+1
| |
| * Check whether the version field is available before looking at it.Guy Harris2014-12-181-4/+7
| | | | | | | | | | While we're at it, use ND_TCHECK(), rather than a hand-rolled check, to check whether we have the full fixed-length portion of the IPv4 header.
| * Travis: minor updateFrancois-Xavier Le Bail2014-12-171-5/+5
| | | | | | | | | | | | add date command add quiet option for apt-get change Coverity token
| * Fix some typosFrancois-Xavier Le Bail2014-12-173-3/+3
| |
| * ForCES: update reference from draft to RFC5810Francois-Xavier Le Bail2014-12-171-2/+2
| | | | | | | | Acked-by: Jamal Hadi Salim
| * OpenFlow: handle 5 more BSN subtypesDenis Ovsienko2014-12-151-0/+22
| |
| * OpenFlow: improve vendor message decodingDenis Ovsienko2014-12-132-5/+226
| | | | | | | | | | | | | | Introduce a new function that tries to dispatch an OFPT_VENDOR message to a vendor-specific printer function. Add such a function for Big Switch Networks vendor with about as little decoding as necessary to cover the existing 7050Q OF1.0 capture.
| * OpenFlow: add vendor name printingDenis Ovsienko2014-12-137-6/+57
| | | | | | | | | | | | | | | | The new function goes into print-openflow.c as vendor name decoding is the same in all versions of OpenFlow (although in 1.0 it is "vendor" and in subsequent versions it is "experimenter"). The mapping is from: https://rs.opennetworking.org/wiki/display/PUBLIC/ONF+Registry
| * Fix a typoFrancois-Xavier Le Bail2014-12-111-1/+1
| |
| * BOOTP/DHCP: fix "Unchecked return value" found by CoverityFrancois-Xavier Le Bail2014-12-091-2/+3
| | | | | | | | | | Add a bounds check Fix spaces
| * OLSR: fix "Unchecked return value" found by CoverityFrancois-Xavier Le Bail2014-12-081-1/+1
| | | | | | | | | | | | | | The bounds check is already done before by ND_TCHECK2(*msg_data, addr_size + name_entry_len + name_entry_padding). So we are deliberately ignoring the return values of fn_printn with last argument NULL (no bounds check).
| * CDP: fix "Unchecked return value" found by CoverityFrancois-Xavier Le Bail2014-12-081-6/+6
| | | | | | | | | | | | The bounds check is already done before by ND_TCHECK2(*tptr, len). So we are deliberately ignoring the return values of fn_printn with last argument NULL (no bounds check).
| * DHCP: decoder for the TFTP Server Address option (RFC5859)Francois-Xavier Le Bail2014-12-014-0/+49
| |
| * BOOTP/DHCP: fix some spaces/tabs and indentationFrancois-Xavier Le Bail2014-12-011-84/+82
| |
| * Merge remote-tracking branch 'github/master'Michael Richardson2014-11-305-13/+110
| |\
| | * DHCP: decoder for the User Class option (RFC3004)Francois-Xavier Le Bail2014-11-284-2/+104
| | |
| | * DHCP: do not print the option and the length twice in some error casesFrancois-Xavier Le Bail2014-11-271-10/+5
| | |
| | * BGP: fix a typoFrancois-Xavier Le Bail2014-11-241-1/+1
| | |
| * | Merge git://github.com/the-tcpdump-group/tcpdumpGuy Harris2014-11-236-89/+128
| |\ \ | | |/
| | * CHANGES: add the DCCP updateFrancois-Xavier Le Bail2014-11-201-1/+2
| | |
| | * tests/dccp_partial_csum_v*.out: update according two previous changesFrancois-Xavier Le Bail2014-11-204-38/+38
| | |
| | * DCCP: fix printing and indentationFrancois-Xavier Le Bail2014-11-201-28/+34
| | | | | | | | | | | | | | | | | | - print missing protocol name - print parentheses around generic header values in verbose mode - fix indentation
| | * DCCP: update Packet Types with RFC4340/IANA namesFrancois-Xavier Le Bail2014-11-201-35/+64
| | |
| * | Merge git://github.com/the-tcpdump-group/tcpdumpGuy Harris2014-11-199-488/+28
| |\ \ | | |/
| | * Makefile.in: delete a duplicated lineFrancois-Xavier Le Bail2014-11-171-1/+0
| | |
| | * Delete useless Control-L charsFrancois-Xavier Le Bail2014-11-142-3/+1
| | |
| | * TESTonce & others: 'make check' need to do a strict comparison, including spacesFrancois-Xavier Le Bail2014-11-144-24/+24
| | | | | | | | | | | | | | | | | | Currently, TESTonce uses 'diff -w' so it ignores all white space. We need a strict comparison, else there is no difference between, for example, 'Association Setup' and 'AssociationSetup' => removing the option '-w'
| | * Delete decnet.h (merged into print-decnet.c)Francois-Xavier Le Bail2014-11-141-459/+0
| | |
| | * VXLAN: update reference from draft to RFC7348Francois-Xavier Le Bail2014-11-141-1/+3
| | |
| * | Oops, that also removed some other Geonet files.Guy Harris2014-11-132-0/+169
| | |
| * | Remove test files for now.Guy Harris2014-11-139-181/+0
| | |
| * | Add tests for recently fixed crashes/buffer overflows.Guy Harris2014-11-137-0/+12
| | |
* | | Merge remote-tracking branch 'origin/master' into tcpdump-4.7Michael Richardson2014-11-131-2/+10
|\ \ \ | |/ /
| * | notes for 4.7.0 releaseMichael Richardson2014-11-131-2/+10
| | |