Also add required icmp6_type
This commit is contained in:
parent
5f14967a32
commit
4d3641fc50
3 changed files with 5 additions and 5 deletions
|
|
@ -179,19 +179,21 @@ class L2Controller(object):
|
|||
def init_ndp_in_switch(self, addr):
|
||||
icmp6_addr = self.gen_ndp_multicast_addr(addr)
|
||||
icmp6_net = "{}/128".format(icmp6_addr)
|
||||
icmp6_type = 135
|
||||
mac_addr = self.info['mac_addr']
|
||||
|
||||
self.controller.table_add("icmp6",
|
||||
"icmp6_neighbor_solicitation",
|
||||
[str(icmp6_net)], [str(addr), str(mac_addr)])
|
||||
[str(icmp6_net), str(icmp6_type)], [str(addr), str(mac_addr)])
|
||||
|
||||
def init_icmp6_echo_in_switch(self, addr):
|
||||
icmp6_addr = addr
|
||||
icmp6_type = 128
|
||||
icmp6_net = "{}/128".format(icmp6_addr)
|
||||
|
||||
self.controller.table_add("icmp6",
|
||||
"icmp6_echo_reply",
|
||||
[str(icmp6_net)], [str(addr)])
|
||||
[str(icmp6_net), str(icmp6_type)], [str(addr)])
|
||||
|
||||
|
||||
def fill_tables(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue