From 766dbba5c387d90b5c8ffe38dcfac4579dd6a346 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 4 Mar 2019 18:41:10 +0100 Subject: [PATCH] ++ --- p4app/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p4app/controller.py b/p4app/controller.py index 5b7aac5..3265896 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -252,9 +252,9 @@ class L2Controller(object): for field in CpuHeader.fields_desc: sz += field.sz - shift_by = (sz*8) -1 + shift_by = sz -1 - log.debug("Len of cpu= {}, {}, shift={}".format(sz, shift_by)) + log.debug("Len of cpu= {}, shift={}".format(sz, shift_by)) ether_orig = Ether(src=packet.src, dst=packet.dst, type=0x86dd) orig_packet = ether_orig / IPv6(packet.load[shift_by:])