From 7d53abef6df0b0626fdac6e77acea04164043d36 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 5 Mar 2019 21:37:38 +0100 Subject: [PATCH] Try deleting all chksums --- p4app/controller.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/p4app/controller.py b/p4app/controller.py index 60d934f..bea6fd3 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -250,8 +250,15 @@ class L2Controller(object): answer = e / i / i2 / i3 + # try 4 + for l in [Ether, IPv6, ICMPv6ND_NA, ICMPv6NDOptDstLLAddr]: + try: + del answer[l].chksum + except AttributeError: + pass + # Let scapy recalc checksum (try3) - answer = answer.__class__(str(answer)) + # answer = answer.__class__(str(answer)) self.send_pkg(answer)