Phasing in icmp6 in the switch

This commit is contained in:
Nico Schottelius 2019-03-05 22:31:05 +01:00
commit 5620add27f
5 changed files with 28 additions and 3 deletions

View file

@ -175,10 +175,14 @@ class L2Controller(object):
self.controller.table_clear("v6_addresses")
for v6addr in self.v6_addresses[self.mode]:
icmp6_addr = self.gen_ndp_multicast_addr(v6addr)
another_addr = v6addr +1
self.controller.table_add("v6_addresses", "controller_reply", [str(v6addr)], [str(self.task['ICMP6_GENERAL'])])
self.controller.table_add("v6_addresses", "controller_reply", [str(icmp6_addr)], [str(self.task['ICMP6_NS'])])
# Experimental
self.controller.table_add("v6_addresses", "icmp6_echo_reply", [str(another_addr)])
def config_hosts(self):
""" Assumptions:
- all routes are networks (no /128 v6 or /32 v4