From 8f9d9c41de8110b2feadb81ed2ecd61c818c9369 Mon Sep 17 00:00:00 2001 From: Abhinna Adhikari Date: Tue, 16 Feb 2021 12:28:42 -0500 Subject: [PATCH] Add pong-rst packet animation support and update packet legend --- static/js/index.js | 3 +++ templates/temp_index.html | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/static/js/index.js b/static/js/index.js index 5f4d258..983a25d 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -192,6 +192,9 @@ function getPacketColor(packetType){ break; case 'PONG': color = 'black'; + break; + case 'PONG-RST': + color = 'silver' } return color; } diff --git a/templates/temp_index.html b/templates/temp_index.html index 1af04ad..6aa9d9a 100644 --- a/templates/temp_index.html +++ b/templates/temp_index.html @@ -198,7 +198,9 @@

This is a simulation project, implem
  • Drop Packets
  • Syn-Ack Packets
  • Ack Packets
  • -
  • RST Packets
  • +
  • Ping Packets
  • +
  • Pong Packets
  • +
  • Pong-Rst Packets