@@ -27,7 +27,7 @@ def _set_flow_rule(cfg, chan):
2727
2828
2929def test_zcrx (cfg ) -> None :
30- cfg .require_v6 ( )
30+ cfg .require_ipver ( '6' )
3131
3232 combined_chans = _get_combined_channels (cfg )
3333 if combined_chans < 2 :
@@ -40,7 +40,7 @@ def test_zcrx(cfg) -> None:
4040 flow_rule_id = _set_flow_rule (cfg , combined_chans - 1 )
4141
4242 rx_cmd = f"{ cfg .bin_remote } -s -p 9999 -i { cfg .ifname } -q { combined_chans - 1 } "
43- tx_cmd = f"{ cfg .bin_local } -c -h { cfg .remote_v6 } -p 9999 -l 12840"
43+ tx_cmd = f"{ cfg .bin_local } -c -h { cfg .remote_addr_v [ '6' ] } -p 9999 -l 12840"
4444 with bkg (rx_cmd , host = cfg .remote , exit_wait = True ):
4545 wait_port_listen (9999 , proto = "tcp" , host = cfg .remote )
4646 cmd (tx_cmd )
@@ -51,7 +51,7 @@ def test_zcrx(cfg) -> None:
5151
5252
5353def test_zcrx_oneshot (cfg ) -> None :
54- cfg .require_v6 ( )
54+ cfg .require_ipver ( '6' )
5555
5656 combined_chans = _get_combined_channels (cfg )
5757 if combined_chans < 2 :
@@ -64,7 +64,7 @@ def test_zcrx_oneshot(cfg) -> None:
6464 flow_rule_id = _set_flow_rule (cfg , combined_chans - 1 )
6565
6666 rx_cmd = f"{ cfg .bin_remote } -s -p 9999 -i { cfg .ifname } -q { combined_chans - 1 } -o 4"
67- tx_cmd = f"{ cfg .bin_local } -c -h { cfg .remote_v6 } -p 9999 -l 4096 -z 16384"
67+ tx_cmd = f"{ cfg .bin_local } -c -h { cfg .remote_addr_v [ '6' ] } -p 9999 -l 4096 -z 16384"
6868 with bkg (rx_cmd , host = cfg .remote , exit_wait = True ):
6969 wait_port_listen (9999 , proto = "tcp" , host = cfg .remote )
7070 cmd (tx_cmd )
0 commit comments