in6_mactoifaceid, in6_ismaddr
from scapy.utils import inet_pton, inet_ntop
+
def mk_ll_addr(mac):
euid = in6_mactoifaceid(mac)
addr = "fe80::" + euid
if not dst_ip:
dst_ip = intf.remote_ip6
- # unicasted packets must come to the unicast mac
+ # unicasted packets must come to the unicast mac
self.assertEqual(rx[Ether].dst, intf.remote_mac)
# and from the router's MAC
self.assertEqual(in6_ptop(rx[IPv6].src),
in6_ptop(mk_ll_addr(intf.local_mac)))
-
def send_and_expect_ra(self, intf, pkts, remark, dst_ip=None,
filter_out_fn=is_ipv6_misc):
intf.add_stream(pkts)
filter_out_fn=None)
#
- # Reset the periodic advertisements back to default values
+ # Reset the periodic advertisements back to default values
#
self.pg0.ip6_ra_config(no=1, suppress=1, send_unicast=0)