From ebc1c7ccc6a561e6dae8084c19c1de3a7b7dbbb4 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Thu, 25 Sep 2014 16:26:23 -0700 Subject: [PATCH] Rename checksum to calc_checksum in ip_ep --- tb/ip_ep.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tb/ip_ep.py b/tb/ip_ep.py index 482429014..dbabe9a3b 100644 --- a/tb/ip_ep.py +++ b/tb/ip_ep.py @@ -117,7 +117,7 @@ class IPFrame(object): def update_length(self): self.ip_length = len(self.payload.data) + 20 - def checksum(self): + def calc_checksum(self): cksum = self.ip_version << 12 | self.ip_ihl << 8 | self.ip_dscp << 2 | self.ip_ecn cksum += self.ip_length cksum += self.ip_identification @@ -132,7 +132,7 @@ class IPFrame(object): return ~cksum & 0xffff def update_checksum(self): - self.ip_header_checksum = self.checksum() + self.ip_header_checksum = self.calc_checksum() def build(self): if self.ip_length is None: