Skip to content

Commit

Permalink
test: filter packets on raweth test
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Apr 25, 2024
1 parent 24cc74d commit 25c2ad7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ set(Z_FEATURE_QUERY 1 CACHE STRING "Toggle query feature")
set(Z_FEATURE_QUERYABLE 1 CACHE STRING "Toggle queryable feature")
set(Z_FEATURE_RAWETH_TRANSPORT 0 CACHE STRING "Toggle raw ethernet transport feature")
set(Z_FEATURE_ATTACHMENT 1 CACHE STRING "Toggle attachment feature")
set(Z_FEATURE_INTEREST 1 CACHE STRING "Toggle interest feature") # Toggle to 1 when protocol changes are merged
set(Z_FEATURE_INTEREST 1 CACHE STRING "Toggle interest feature")
add_definition(Z_FEATURE_MULTI_THREAD=${Z_FEATURE_MULTI_THREAD})
add_definition(Z_FEATURE_PUBLICATION=${Z_FEATURE_PUBLICATION})
add_definition(Z_FEATURE_SUBSCRIPTION=${Z_FEATURE_SUBSCRIPTION})
Expand Down
7 changes: 5 additions & 2 deletions tests/raweth.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ def pub_and_sub(args):

print("Start subscriber")
# Start z_sub in the background
z_sub_command = f"sudo stdbuf -oL -eL ./{DIR_EXAMPLES}/z_sub -n 10 -m \"peer\" -l \"reth/0\"s"
z_sub_command = f"sudo stdbuf -oL -eL ./{DIR_EXAMPLES}/z_sub -n 10 -m \"peer\" -l \
\"reth/30:03:8c:c8:00:a2#iface=lo;whitelist=30:03:8c:c8:00:a1,\"s"

z_sub_process = subprocess.Popen(z_sub_command,
shell=True,
stdin=subprocess.PIPE,
Expand All @@ -70,7 +72,8 @@ def pub_and_sub(args):

print("Start publisher")
# Start z_pub
z_pub_command = f"sudo stdbuf -oL -eL ./{DIR_EXAMPLES}/z_pub -n 10 -m \"peer\" -l \"reth/0\"s"
z_pub_command = f"sudo stdbuf -oL -eL ./{DIR_EXAMPLES}/z_pub -n 10 -m \"peer\" -l \
\"reth/30:03:8c:c8:00:a1#iface=lo;whitelist=30:03:8c:c8:00:a2,\"s"
z_pub_process = subprocess.Popen(z_pub_command,
shell=True,
stdin=subprocess.PIPE,
Expand Down

0 comments on commit 25c2ad7

Please sign in to comment.