Browse Source

Update 'Test_Cases/IP_Checksum_Calculator.py'

master
Sana147 2 years ago
parent
commit
37d4127ad0
  1. 2
      Test_Cases/IP_Checksum_Calculator.py

2
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

Loading…
Cancel
Save