summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Revert "Print decoded attributes from NFLOG message"Michael Richardson2020-02-293-18/+0
| | | | | | | | | | | | This reverts commit 5ed759e023e20831a675d1432e12b08061ab1d08.
| * | Merge pull request #492 from vel21ripn/nflog-printMichael Richardson2020-02-293-0/+18
| |\ \ | | | | | | | | Print attributes from NFLOG message
| | * | Print decoded attributes from NFLOG messageVitaly Lavrov2015-11-253-0/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | print MARK,PREFIX attributes print HOOK,UID,GID,IFINDEX_INDEV,IFINDEX_OUTDEV, IFINDEX_PHYSINDEV,IFINDEX_PHYSOUTDEV attributes if -v print HWHEADER attributes if -vv print other attributes w/o decode if -vvv Аdding nflog_print.pcap for testing
| * | | Dispatch the PTP ethertype to ptp_print()Jeff Chan2020-02-293-0/+206
| | | | | | | | | | | | | | | | | | | | | | | | This implements "IEEE 802.3/Ethernet" mode as described in annex F of the PTP standard. This uses the same format packets, but directly over Ethernet instead of encapsulated in UDP.
| * | | PTP: Fix printing the Reserved2 fieldFrancois-Xavier Le Bail2020-02-281-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Probably a copy & paste error. Moreover: Add some missing commas in output. Fix some typos. Update the output of a test accordingly.
| * | | MPTCP: parse MP_CAPABLE v1 optionsDavide Caratti2020-02-286-7/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A new version of MPTCP protocol (RFC8684) has been published, with some changes to the MP_CAPABLE options handling. Let tcpdump print the protocol version, and adjust parsing of MP_CAPABLE options according to RFC8684. Signed-off-by: Davide Caratti <dcaratti@redhat.com>
| * | | Merge pull request #829 from fenner/isis-rfc8202fxlb2020-02-245-54/+777
| |\ \ \ | | | | | | | | | | Parse the IS-IS Instance Identifier TLV from RFC8202
| | * | | Parse the IS-IS Instance Identifier TLV from RFC8202Manoharan Sundaramoorthy2020-02-215-54/+777
| | | | |
| * | | | Add newline to the end of the last line.Guy Harris2020-02-191-1/+1
| | | | |
| * | | | Autosar SOME/IP protocol supportFrancesco Fondelli2020-02-195-0/+12
| |/ / /
| * | | merge testfuncs.pm into TESTrunMichael Richardson2020-02-112-143/+137
| | | |
| * | | Print MPLS-over-UDP.simonov-d2020-02-094-0/+12
| | | |
| * | | Do the isis-seg-fault-1-v test regardless of the floating-point type.Guy Harris2020-02-041-1/+5
| | | | | | | | | | | | | | | | | | | | This test seems to work even with "x87" floating point; perhaps it fails on, e.g., SPARC with some compiler.
| * | | Test both with "normal" and "x87" floating-point.Guy Harris2020-02-043-4/+211
| | | | | | | | | | | | | | | | | | | | | | | | "Normal" is what you'll get with most versions of most instruction sets; "x87" is what you'll get with code compiled for 32-bit x86 without SSE, using the x87 instructions, at least with some compilers.
| * | | Do the floating-point tests closer to what we need.Guy Harris2020-02-041-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It's All Very Complicated, so mirror what print-lmp.c does - just do a calculation based on a particular input value and print the result using the same format print-lmp.c does, and have tests/TESTrun see what that result is. Just do that inside tcpdump.c, so we don't need the fptype stuff.
| * | | Do some tests based on the type of floating-point arithmetic tcpdump does.Guy Harris2020-02-043-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a --fp-type flag to tcpdump, which causes it to do a floating-point operation and, based on the result of the operation, prints out "FPTYPE{n}", where {n} is a number indicating the result. Have tests/TESTrun run "./tcpdump --fp-type" and set a HAVE_ key based on that. Run some tests only for FPTYPE1.
| * | | Remove the hacks to avoid floating-point issues in the tcpdump checks.Guy Harris2020-02-042-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I can't seem to make those issues pop up on my (x86-64) machine, and, if they do show up on any platforms, the best hack to handle it is probably to have a special tcpdump flag to force it to do a floating-point calculation and see what result is generated, and report the result, so we know what it'll do with the numbers in the test files, and have tests/TESTrun run tcpdump with that flag. If those tests *do* fail, we'll know what calculations to do.
| * | | Improve "skipped" messages.Guy Harris2020-02-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we're skipping a test because something *is* set, say "XXX set". If we're skipping a test because something *isn't* set, say "XXX not set". (Don't say the same thing in both cases.)
| * | | address some nits after the TESTrun stormDenis Ovsienko2020-02-044-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove a stray .md file and restore some comments from the removed .sh files so future folk can see where the conditional tests come from, not just the mere fact of their existence. Remove the unused fragile shebang from testfuncs.pm. [skip ci]
| * | | indent the message about skipped testMichael Richardson2020-02-041-2/+2
| | | |
| * | | removed .passwd/.failed processingMichael Richardson2020-02-041-21/+0
| | | |
| * | | turn off all shell testsMichael Richardson2020-02-041-18/+1
| | | |
| * | | switch from shell script to complex test for lmp-vMichael Richardson2020-02-042-38/+13
| | | |
| * | | switch from shell script to complex testMichael Richardson2020-02-042-35/+13
| | | |
| * | | if CC=*gcc* is found in Makefile, then set USING_GCCMichael Richardson2020-02-041-3/+16
| | | |
| * | | switch from crypto.sh to crypto.testsMichael Richardson2020-02-042-157/+78
| | | |
| * | | process config_setMichael Richardson2020-02-042-10/+105
| | | |
| * | | use perl hashes for configuration, rather than YAML thingsMichael Richardson2020-02-041-20/+31
| | | |
| * | | Fix typo mentioned in GitHub issue #819.Guy Harris2020-02-021-1/+1
| | | |
| * | | Add in the passed and failed counts from subshells.Guy Harris2020-02-021-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Once we've gotten rid of those scripts, this should no longer be necessary. Fixes the problem I mentioned in my comment in GitHub issue #820. Get rid of extra blank lines at the end while we're at it.
| * | | Temporary fix for GitHub issue #820Guy Harris2020-02-021-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | Create the tests/.passed and tests/.failed files used by test shell scripts; once we've gotten rid of those scripts, this should no longer be necessary.
| * | | use mkpath instead of make_path so that it works on perl 5.8 (Solaris 10)Michael Richardson2020-01-281-3/+3
| | | |
| * | | Fix Perl shebang in TESTrun.Denis Ovsienko2020-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Some script interpreters do not have the same pathname in all operating systems where they work (e.g. Perl is /usr/local/bin/perl on FreeBSD). Apply the classic solution to this classic problem.
| * | | attempt to die nicely of YAML is not loadableMichael Richardson2020-01-251-1/+2
| | | |
| * | | initial effort to process YAML format testlistMichael Richardson2020-01-241-8/+43
| | | |
| * | | translate TESTrun.sh to Perl, still using external routines for complex ↵Michael Richardson2020-01-244-236/+252
| | | | | | | | | | | | | | | | situations
| * | | move test invocation code into subroutineMichael Richardson2020-01-241-115/+116
| | | |
| * | | LDP: Add some missing bounds checksFrancois-Xavier Le Bail2020-01-183-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace calls to ipaddr_string()/ip6addr_string() with calls to GET_IPADDR_STRING()/GET_IP6ADDR_STRING() macros performing bounds checking. Fix a regression in 78a4ee82226a3fe19981841dfe24d5e9cb437524. This fixes a buffer over-read in ldp_tlv_print() discovered by Jason Xiaole. Add a test using the capture file supplied by the reporter updated to keep only the packet showing the buffer over-read.
| * | | Fix indentation in "make check" outputFrancois-Xavier Le Bail2019-11-274-10/+10
| | | |
| * | | The ptp (precision time protocol) with UDP as the transport protocol.Partha Ghosh2019-11-223-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - the print routines for ptp different ptp messages - test completed for sync message, announce message, delay request message, delay response message and follow up message. - integration of the ptp v2 code with the tcpdump code. Signed-off-by: Partha S. Ghosh <psglinux@gmail.com>
| * | | Don't run past the end of an MP_REACH_NLRI attribute.Guy Harris2019-11-102-56/+2
| | | | | | | | | | | | | | | | | | | | Keep track of the length of the attribute, and make sure we don't run past it.
| * | | PIM: Fix some length checksFrancois-Xavier Le Bail2019-11-094-51490/+4
| | | | | | | | | | | | | | | | Update the outputs of some tests accordingly.
| * | | IS-IS: Fix some undefined behaviors at runtimeFrancois-Xavier Le Bail2019-11-082-330/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The error were like: print-isoclns.c:2583:20: runtime error: unsigned integer overflow: 20 - 27 cannot be represented in type 'unsigned int' print-isoclns.c:2525:20: runtime error: unsigned integer overflow: 0 - 20 cannot be represented in type 'unsigned int' Update the output of two tests accordingly.
| * | | timed: Add three test capture filesFrancois-Xavier Le Bail2019-11-057-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These capture files triggered a buffer over-read fixed by 6f2cd8cee6372b2d3f4783ce30a603b31839d31f. Two pcap files were updated to pass the sanity checks. Update the outputs of the tests accordingly.
| * | | SMB: Add two test capture filesFrancois-Xavier Le Bail2019-11-045-0/+226
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These capture files triggered a buffer over-read or a segmentation fault with the 4.9.2 release fixed in the 4.9.3 release. These errors were fixed in master branch by commit daa343d8e215a6704ee37399a77a70133df51e01. Update the outputs of the tests accordingly. Partial update from b8f025d17f8d9d32542d21bff6dae25199761a91 in 4.9 branch.
| * | | Update some test capture filesFrancois-Xavier Le Bail2019-11-0224-24/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes avoid some pcap_loop() errors messages like: "tcpdump: pcap_loop: invalid packet capture length X, bigger than snaplen of Y" or "tcpdump: pcap_loop: truncated dump file; tried to read X header bytes, only got Y" Update the output of the tests accordingly (no more "EXIT CODE" line). Remove the no more useful .out.stderr files.
| * | | Update some test capture filesFrancois-Xavier Le Bail2019-11-028-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These changes avoid some pcap_loop() errors messages like: "tcpdump: pcap_loop: invalid packet capture length X, bigger than snaplen of Y" or "tcpdump: pcap_loop: truncated dump file; tried to read X captured bytes, only got Y" The outputs of the tests are unchanged. Remove the no more useful -c options in the test configurations.
| * | | Remove useless -c options in some test configurationsFrancois-Xavier Le Bail2019-11-021-15/+15
| | | |
| * | | Remove some .out.stderr filesFrancois-Xavier Le Bail2019-11-023-3/+0
| | | | | | | | | | | | | | | | There is no error.
| * | | sFlow: Add a test capture fileFrancois-Xavier Le Bail2019-10-303-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This capture file triggered a buffer over-read with the 4.9.2 release fixed in the 4.9.3 release. The problem was fixed in master branch by commit 09822d484b0f26d197a1ea8fdf81ca6e0d698634. Update the output of the test accordingly. Update from b35eb4c1630d2e40a9e25dd873c572e1aec43910 in 4.9 branch.