On Sun, Jan 31, 2021 at 12:05:20PM +0000, Stuart Henderson wrote:
> Because that doesn't tell the user how to run the tests.
Right, my bad. I was convinced that its content would be shown upon
`make test'.
I've set up test interfaces as follows:
# ifconfig vether10 rdomain 1
# ifconfig vether11 rdomain 1
And followed your instructions by setting intf1/2 in config and nic1/2
in Makefile to the interface names accordingly.
tcpdumping both interfaces during the test run shows now traffic at all.
I've also looked at tcpreplay(1), tried "netmap:vether10" instead of
"vether10" and looked at `tcpreplay --listnics' but with no avail; same
test behaviour and tcpeplay does not seem to see the vether interfaces
at all:
# tcpreplay --listnics
Available network interfaces:
em0
athn0
trunk0
wg0
pflog0
How did you configure test interfaces?
Here's the output of `gmake' and the resulting test.log:
: /usr/ports/pobj/tcpreplay-4.3.3/tcpreplay-4.3.3/test # gmake
NOTICE: Tests must be run as root
Sending traffic on 'vether10' and 'vether11'
[tcpprep] Auto/Router mode test: OK
[tcpprep] Auto/Bridge mode test: OK
[tcpprep] Auto/Client mode test: OK
[tcpprep] Auto/Server mode test: OK
[tcpprep] Auto/First mode test: OK
[tcpprep] CIDR mode test: OK
[tcpprep] Regex mode test: OK
[tcpprep] Port mode test: OK
[tcpprep] MAC mode test: OK
[tcpprep] Comment mode test: OK
[tcpprep] Print info mode test: OK
[tcpprep] Print comment mode test: OK
[tcpprep] Config mode test: OK
[tcpprep] MAC reverse mode test: OK
[tcpprep] CIDR reverse mode test: OK
[tcpprep] Regex reverse mode test: OK
[tcpprep] exclude packets test: OK
[tcpprep] include packets test: OK
[tcpprep] include source test: OK
[tcpprep] include destination test: OK
[tcpreplay] Basic test: gmake: *** [Makefile:796: replay_basic] Error 255
[tcpreplay] Cache test: gmake: *** [Makefile:802: replay_cache] Error 255
[tcpreplay] Packets/sec test: gmake: *** [Makefile:1034: replay_pps] Error 255
[tcpreplay] Mbps test: gmake: *** [Makefile:1040: replay_rate] Error 255
[tcpreplay] Topspeed test: gmake: *** [Makefile:1058: replay_top] Error 255
[tcpreplay] Config file/VLAN add test: gmake: *** [Makefile:1076: replay_config] Error 255
[tcpreplay] Multiplier test: gmake: *** [Makefile:1046: replay_multi] Error 255
[tcpreplay] Packets/sec Multiplier test: gmake: *** [Makefile:1052: replay_pps_multi] Error 255
[tcpreplay] Precache test: gmake: *** [Makefile:1064: replay_precache] Error 255
[tcpreplay] Statistics test: gmake: *** [Makefile:814: replay_stats] Error 255
[tcpreplay] Dual file test: gmake: *** [Makefile:1082: replay_dualfile] Error 255
[tcpreplay] Maximum sleep test: gmake: *** [Makefile:1088: replay_maxsleep] Error 255
[tcprewrite] Portmap test: OK
[tcprewrite] Portmap range test: OK
[tcprewrite] Endpoint test: OK
[tcprewrite] Pseudo NAT test: OK
[tcprewrite] Truncate test: OK
[tcprewrite] Pad test: OK
[tcprewrite] Seed IP test: OK
[tcprewrite] Src/Dst MAC test: OK
[tcprewrite] Layer2 test: OK
[tcprewrite] Config/VLAN Add test: OK
[tcprewrite] Skip bcast test: OK
[tcprewrite] DLT User test: OK
[tcprewrite] DLT Cisco HDLC test: OK
[tcprewrite] VLAN Delete test: OK
[tcprewrite] Remove EFCS: OK
[tcprewrite] Force TTL: OK
[tcprewrite] Increase TTL: OK
[tcprewrite] Reduce TTL: OK
[tcprewrite] TOS test: OK
[tcprewrite] MTU Truncate test: OK
[tcprewrite] Substitute Src/Dst MAC test: OK
[tcprewrite] Seeded MAC test: OK
[tcprewrite] Seeded Keep MAC test: OK
[tcprewrite] L7 fuzzing test: OK
[tcprewrite] TCP sequence test: OK
gmake: Target 'all' not remade because of errors.
: /usr/ports/pobj/tcpreplay-4.3.3/tcpreplay-4.3.3/test # cat test.log
Fatal Error: Unable to parse args: Invalid interface name/alias: vether10
*** [tcpprep] Auto/Client mode test:
*** [tcpprep] Auto/Server mode test:
*** [tcpprep] Auto/First mode test:
*** [tcpprep] CIDR mode test:
*** [tcpprep] Regex mode test:
*** [tcpprep] Port mode test:
*** [tcpprep] MAC mode test:
*** [tcpprep] Comment mode test:
*** [tcpprep] Print info mode test:
Packet 1 -> Primary
Packet 2 -> Primary
Packet 3 -> Secondary
Packet 4 -> Primary
Packet 5 -> Secondary
Packet 6 -> Primary
Packet 7 -> Secondary
Packet 8 -> Primary
Packet 9 -> Secondary
Packet 10 -> Secondary
Packet 11 -> Primary
Packet 12 -> Secondary
Packet 13 -> Primary
Packet 14 -> Primary
Packet 15 -> Secondary
Packet 16 -> Secondary
Packet 17 -> Secondary
Packet 18 -> Primary
Packet 19 -> Secondary
Packet 20 -> Primary
Packet 21 -> Primary
Packet 22 -> Primary
Packet 23 -> Secondary
Packet 24 -> Secondary
Packet 25 -> Secondary
Packet 26 -> Primary
Packet 27 -> Secondary
Packet 28 -> Primary
Packet 29 -> Secondary
Packet 30 -> Secondary
Packet 31 -> Primary
Packet 32 -> Primary
Packet 33 -> Primary
Packet 34 -> Secondary
Packet 35 -> Secondary
Packet 36 -> Secondary
Packet 37 -> Secondary
Packet 38 -> Primary
Packet 39 -> Primary
Packet 40 -> Secondary
Packet 41 -> Primary
Packet 42 -> Primary
Packet 43 -> Secondary
Packet 44 -> Secondary
Packet 45 -> Secondary
Packet 46 -> Primary
Packet 47 -> Secondary
Packet 48 -> Secondary
Packet 49 -> Primary
Packet 50 -> Secondary
Packet 51 -> Secondary
Packet 52 -> Primary
Packet 53 -> Secondary
Packet 54 -> Primary
Packet 55 -> Secondary
Packet 56 -> Secondary
Packet 57 -> Primary
Packet 58 -> Secondary
Packet 59 -> Secondary
Packet 60 -> Primary
Packet 61 -> Primary
Packet 62 -> Primary
Packet 63 -> Secondary
Packet 64 -> Primary
Packet 65 -> Primary
Packet 66 -> Secondary
Packet 67 -> Primary
Packet 68 -> Primary
Packet 69 -> Secondary
Packet 70 -> Secondary
Packet 71 -> Primary
Packet 72 -> Secondary
Packet 73 -> Secondary
Packet 74 -> Primary
Packet 75 -> Secondary
Packet 76 -> Secondary
Packet 77 -> Primary
Packet 78 -> Secondary
Packet 79 -> Secondary
Packet 80 -> Primary
Packet 81 -> Secondary
Packet 82 -> Primary
Packet 83 -> Secondary
Packet 84 -> Secondary
Packet 85 -> Primary
Packet 86 -> Secondary
Packet 87 -> Secondary
Packet 88 -> Secondary
Packet 89 -> Primary
Packet 90 -> Secondary
Packet 91 -> Primary
Packet 92 -> Secondary
Packet 93 -> Secondary
Packet 94 -> Primary
Packet 95 -> Secondary
Packet 96 -> Primary
Packet 97 -> Secondary
Packet 98 -> Primary
Packet 99 -> Secondary
Packet 100 -> Primary
Packet 101 -> Secondary
Packet 102 -> Primary
Packet 103 -> Primary
Packet 104 -> Primary
Packet 105 -> Primary
Packet 106 -> Secondary
Packet 107 -> Primary
Packet 108 -> Secondary
Packet 109 -> Secondary
Packet 110 -> Primary
Packet 111 -> Secondary
Packet 112 -> Primary
Packet 113 -> Primary
Packet 114 -> Primary
Packet 115 -> Secondary
Packet 116 -> Secondary
Packet 117 -> Primary
Packet 118 -> Primary
Packet 119 -> Secondary
Packet 120 -> Primary
Packet 121 -> Secondary
Packet 122 -> Secondary
Packet 123 -> Secondary
Packet 124 -> Secondary
Packet 125 -> Primary
Packet 126 -> Primary
Packet 127 -> Primary
Packet 128 -> Secondary
Packet 129 -> Secondary
Packet 130 -> Secondary
Packet 131 -> Secondary
Packet 132 -> Primary
Packet 133 -> Primary
Packet 134 -> Secondary
Packet 135 -> Primary
Packet 136 -> Secondary
Packet 137 -> Primary
Packet 138 -> Secondary
Packet 139 -> Secondary
Packet 140 -> Secondary
Packet 141 -> Secondary
*** [tcpprep] Print comment mode test:
tcpprep args:
This is a comment
Cache contains data for 141 packets
*** [tcpprep] Config mode test:
*** [tcpprep] MAC reverse mode test:
*** [tcpprep] CIDR reverse mode test:
*** [tcpprep] Regex reverse mode test:
*** [tcpprep] exclude packets test:
*** [tcpprep] include packets test:
*** [tcpprep] include source test:
*** [tcpprep] include destination test:
*** [tcpreplay] Basic test:
*** [tcpreplay] Cache test:
*** [tcpreplay] Packets/sec test:
*** [tcpreplay] Mbps test:
*** [tcpreplay] Topspeed test:
*** [tcpreplay] Config file/VLAN add test:
*** [tcpreplay] Multiplier test:
*** [tcpreplay] Packets/sec Multiplier test:
*** [tcpreplay] Precache test:
*** [tcpreplay] Statistics test:
*** [tcpreplay] Dual file test:
*** [tcpreplay] Maximum sleep test:
*** [tcprewrite] Portmap test:
*** [tcprewrite] Portmap range test:
*** [tcprewrite] Endpoint test:
*** [tcprewrite] Pseudo NAT test:
*** [tcprewrite] Truncate test:
*** [tcprewrite] Pad test:
*** [tcprewrite] Seed IP test:
*** [tcprewrite] Src/Dst MAC test:
*** [tcprewrite] Layer2 test:
*** [tcprewrite] Config/VLAN Add test:
*** [tcprewrite] Skip bcast test:
*** [tcprewrite] DLT User test:
*** [tcprewrite] DLT Cisco HDLC test:
*** [tcprewrite] VLAN Delete test:
*** [tcprewrite] Remove EFCS:
*** [tcprewrite] Force TTL:
*** [tcprewrite] Increase TTL:
*** [tcprewrite] Reduce TTL:
*** [tcprewrite] TOS test:
*** [tcprewrite] MTU Truncate test:
*** [tcprewrite] Substitute Src/Dst MAC test:
*** [tcprewrite] Seeded MAC test:
*** [tcprewrite] Seeded Keep MAC test:
*** [tcprewrite] L7 fuzzing test:
*** [tcprewrite] TCP sequence test:
The problem is "vether10" do not exist in your PC/OS.
ReplyDeleteOpen the Makefile (into this file "/usr/ports/pobj/tcpreplay-4.3.3/tcpreplay-4.3.3/test") in edit mode (E.g. sudo gedit /usr/ports/pobj/tcpreplay-4.3.3/tcpreplay-4.3.3/test/Makefile) and change the "vether10" interface by an existent one (like "eth0", "lo", etc.).