Update 'Test_Cases/IP_Checksum_Calculator.py'

This commit is contained in:
Sana147 committed 2023-05-08 00:08:34 +00:00
1 parent b23fe8f36f
commit 37d4127ad0
1 file changed
+2
+2
View File
@@ -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