Setting interface DOWN/UP
Check that setting interface DOWN/UP does not break the driver.
Scenarios: X3-SYS06, X3-STR03, X3-STR12.
If tx_traffic or rx_traffic is
TRUE, create a pair of connected UDP sockets on IUT and Tester.If IPv6 is checked, also enable keep_addr_on_down setting for the IUT interface to avoid IPv6 address disappearance after brinding it down.
If tx_traffic is
TRUE, call rpc_pattern_sender() in a child process on IUT and rpc_drain_fd_duration() in a child process on Tester to start data flow from IUT to Tester.If rx_traffic is
TRUE, call rpc_pattern_sender() in a child process on Tester and rpc_drain_fd_duration() in a child process on IUT to start data flow from Tester to IUT.In a loop set IUT interface DOWN and UP until duration seconds passes (but do it at least once). If wait_after_if_up is not zero, wait specified number of milliseconds at the end of every loop iteration.
If tx_traffic is
TRUE, check that data sending from IUT and data receiving on Tester terminated successfully.If rx_traffic is
TRUE, check that data sending from Tester and data receiving on IUT terminated successfully.
Dmitry Izbitsky Dmitry.Izbitsky@oktetlabs.ru
Parameters:
env  | 
Testing environment:  | 
duration  | 
How long to run the loop setting interface DOWN/UP, in seconds: 
  | 
wait_after_if_up  | 
How long to wait after bringing interface UP, in milliseconds: 
  | 
tx_traffic  | 
If   | 
rx_traffic  | 
If   |