Message ID | 20220809230428.215970-4-prestwoj@gmail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | Roam based on packet loss event | expand |
Context | Check | Description |
---|---|---|
tedd_an/pre-ci_am | success | Success |
prestwoj/iwd-ci-gitlint | success | GitLint |
diff --git a/autotests/util/testutil.py b/autotests/util/testutil.py index eae4dd89..37de49a2 100644 --- a/autotests/util/testutil.py +++ b/autotests/util/testutil.py @@ -53,6 +53,13 @@ def tx(fromsock, tosock, src, dst): return (frame, fromsock, tosock, src, dst) +def tx_packets(if0, if1, num): + sock0, addr0 = raw_if_socket(if0) + sock1, addr1 = raw_if_socket(if1) + + for i in range(num): + tx(sock0, sock1, addr0, addr1) + def test_connected(if0=None, if1=None, group=True, expect_fail=False): if expect_fail: timeout = 0