Skip to content

Commit

Permalink
fix: destination shape in nat and pep
Browse files Browse the repository at this point in the history
  • Loading branch information
xhdix committed Jul 24, 2022
1 parent 23f1c66 commit 72a0981
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/vis.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,14 @@ def vis(measurement_path, attach_jscss, edge_lable: str = "none"):
device_name = PEP_NAME
current_node_shape = "star"
already_detected[repeat_steps]["is_pep"] = True
current_node_id = "pep" + current_node_id + "x"
if current_node_id != dst_addr_id:
current_node_id = "pep" + current_node_id + "x"
elif is_nat and not already_detected[repeat_steps]["is_nat"]:
device_color = NAT_COLOR
device_name = NAT_NAME
already_detected[repeat_steps]["is_nat"] = True
current_node_id = "nat" + current_node_id + "x"
if current_node_id != dst_addr_id:
current_node_id = "nat" + current_node_id + "x"
append_lines = tooltips_append_lines(
is_nat, is_middlebox, is_pep, packet_type, tcpflag)
if (is_middlebox_ttl or is_middlebox):
Expand Down

0 comments on commit 72a0981

Please sign in to comment.