diff --git a/doc/plan.org b/doc/plan.org index 41ad85f..eb2cbaa 100644 --- a/doc/plan.org +++ b/doc/plan.org @@ -723,7 +723,8 @@ p4@ubuntu:~/master-thesis$ ***** TODO Make switch answer icmp echo request for ***** TODO Add default route for v4 hosts **** TODO Translate ipv6 --> ipv4 with a (freely programmable) prefix -***** TODO Insert prefix into switch: v6_networks +***** DONE Insert prefix into switch: v6_networks +***** TODO Support multiple ipv6 source networks: need new table w/ 2 keys! ***** TODO Implement the calculation ***** TODO Sketch the flow for session handling for icmp6 w/o packet loss - switch receives icmp6 packet for known prefix diff --git a/p4app/controller.py b/p4app/controller.py index cc399a9..ba4b5bb 100644 --- a/p4app/controller.py +++ b/p4app/controller.py @@ -81,7 +81,9 @@ class L2Controller(object): ) self.v6_routes['router'] = self.v6_routes['base'] - self.v6_routes['range_router'] = self.v6_routes['base'] + + # only 1 route to avoid table duplicate/conflict + self.v6_routes['range_router'] = self.v6_routes['base'][0:1] self.v4_routes = {} self.v4_routes[None] = []