diff options
Diffstat (limited to 'test/test_ip6_nd_mirror_proxy.py')
-rw-r--r-- | test/test_ip6_nd_mirror_proxy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_ip6_nd_mirror_proxy.py b/test/test_ip6_nd_mirror_proxy.py index 65209925e87..e94309e8b50 100644 --- a/test/test_ip6_nd_mirror_proxy.py +++ b/test/test_ip6_nd_mirror_proxy.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import unittest -from socket import inet_pton, inet_ntop +from socket import inet_pton, inet_ntop, AF_INET6 from framework import VppTestCase from asfframework import VppTestRunner @@ -59,8 +59,8 @@ class TestNDPROXY(VppTestCase): # will come from the VPP's own address. # addr = self.pg0.remote_ip6 - nsma = in6_getnsma(inet_pton(socket.AF_INET6, addr)) - d = inet_ntop(socket.AF_INET6, nsma) + nsma = in6_getnsma(inet_pton(AF_INET6, addr)) + d = inet_ntop(AF_INET6, nsma) # Make pg1 un-numbered to pg0 # @@ -161,7 +161,7 @@ class TestNDPROXY(VppTestCase): redirect.add_vpp_config() echo_reply = ( - Ether(dst=self.pg0.remote_mac, src=self.pg0.local_mac) + Ether(dst=self.pg0.local_mac, src=self.pg0.remote_mac) / IPv6(dst=self.pg0.local_ip6, src=self.pg0.remote_ip6) / ICMPv6EchoReply(seq=1, id=id) ) |