From 37d4127ad0abe542b6f1c38101410544ca61f450 Mon Sep 17 00:00:00 2001 From: Sana147 <14mseeshabib@seecs.edu.pk> Date: Mon, 8 May 2023 00:08:34 +0000 Subject: [PATCH] Update 'Test_Cases/IP_Checksum_Calculator.py' --- Test_Cases/IP_Checksum_Calculator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Test_Cases/IP_Checksum_Calculator.py b/Test_Cases/IP_Checksum_Calculator.py index ff9cd9c..fb0bbb7 100644 --- a/Test_Cases/IP_Checksum_Calculator.py +++ b/Test_Cases/IP_Checksum_Calculator.py @@ -1,6 +1,8 @@ # Code has been taken from https://www.codeproject.com/Tips/460867/Python-Implementation-of-IP-Checksum # Example is provided at https://www.thegeekstuff.com/2012/05/ip-header-checksum/ +# For now, manually changing values in the header field to compute IP checksum. + def ip_checksum(ip_header, size): cksum = 0