traceroute tests: fix the test when SCTP is supportedThe SCTP test assumes a default system configuration where SCTP is notsupported, so the probe packet returns an ICMP error which is displayeda
traceroute tests: fix the test when SCTP is supportedThe SCTP test assumes a default system configuration where SCTP is notsupported, so the probe packet returns an ICMP error which is displayedas a !P response. If SCTP is supported, then something else is returnedinstead (depending on exactly what probe we sent, but not an ICMP error)and the test fails.Since we already check the correct probes are sent using tcpdump, removethe match for the second hop entirely.Reported by: JenkinsReviewed by: desApproved by: des (mentor)Differential Revision: https://reviews.freebsd.org/D50336
show more ...
traceroute: add testsadd some basic tests for traceroute. this covers most of the flags wecan easily test; in some cases we use tcpdump to ensure the correctpackets are actually being sent.to
traceroute: add testsadd some basic tests for traceroute. this covers most of the flags wecan easily test; in some cases we use tcpdump to ensure the correctpackets are actually being sent.to run the tests, we create three jails: one for the source host, onefor the destination host, and one to route packets betweem them. thisensures we're actually testing traceroute across a routed network andnot just sending probe packets to a directly connected host.no tests for traceroute6 are in this commit since the traceroute6 mergeinto traceroute is in progress elsewhere.Reviewed by: des, adrianApproved by: des (mentor)Differential Revision: https://reviews.freebsd.org/D49838