def _check_udp_port_ip6(self, enabled=True):
    pkt = ((Ether(src=self.pg0.local_mac, dst=self.pg0.remote_mac) / IPv6(src=self.pg0.remote_ip6, dst=self.pg0.local_ip6)) / UDP(sport=self.dport, dport=self.dport, chksum=0))
    self.pg0.add_stream(pkt)
    self.pg_start()
    err = self.statistics.get_counter('/err/ip6-udp-lookup/No listener for dst port')[0]
    if enabled:
        self.assertEqual(err, self.ip6_err)
    else:
        self.assertEqual(err, (self.ip6_err + 1))
    self.ip6_err = err
def _check_udp_port_ip6(self, enabled=True):
    pkt = ((Ether(src=self.pg0.local_mac, dst=self.pg0.remote_mac) / IPv6(src=self.pg0.remote_ip6, dst=self.pg0.local_ip6)) / UDP(sport=self.dport, dport=self.dport, chksum=0))
    self.pg0.add_stream(pkt)
    self.pg_start()
    err = self.statistics.get_counter('/err/ip6-udp-lookup/No listener for dst port')[0]
    if enabled:
        self.assertEqual(err, self.ip6_err)
    else:
        self.assertEqual(err, (self.ip6_err + 1))
    self.ip6_err = err