From 0ea9e708de0917095b88661a98b6d49169b5ab53 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 26 Feb 2019 15:53:48 +0100 Subject: [PATCH] [p4] If non matching ndp -> escalate to controller --- p4app/controller.py | 1 - p4src/static-mapping.p4 | 6 ++++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/p4app/controller.py b/p4app/controller.py index 37067f7..ba053ee 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -91,7 +91,6 @@ class L2Controller(object): # https://en.wikipedia.org/wiki/Solicited-node_multicast_address ndp_prefix = "ff02::1:ff00:0/104" - ndp_prefix = "ffff:ffff:ffff:ffff:ffff:ffff:ff00:0/104" all_ports = range(1,5) # create multicast nodes diff --git a/p4src/static-mapping.p4 b/p4src/static-mapping.p4 index 97096a3..2f0f35d 100644 --- a/p4src/static-mapping.p4 +++ b/p4src/static-mapping.p4 @@ -38,7 +38,8 @@ control MyIngress(inout headers hdr, NoAction; } size = NDP_TABLE_SIZE; - default_action = NoAction; +// default_action = NoAction; + default_action = send_to_controller; } @@ -71,7 +72,8 @@ control MyIngress(inout headers hdr, NoAction; } size = ADDRESS_TABLE_SIZE; - default_action = send_to_controller; +// default_action = send_to_controller; + default_action = NoAction; }