From 1b59727708a263aedddac5e00011299fb31f8800 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Mon, 4 Mar 2019 14:24:02 +0100 Subject: [PATCH] Improve controller robustness --- p4app/controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/p4app/controller.py b/p4app/controller.py index 427e28e..dd474b9 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -232,11 +232,11 @@ class L2Controller(object): pass elif packet.type == 0x4242: - # CPU header included +! # CPU header included print("Special handling needed") pass else: - print("Broken pkg: {}".format(pkg)) + print("Broken pkg: {}".format(pkg.__repr__())) return def run_cpu_port_loop(self):