def expected_mask_routed_packet(self, pkt, ip_version):
    'Generate the expected mask for a routed packet.'
    exp_pkt = pkt.copy()
    exp_pkt = mask.Mask(exp_pkt)
    exp_pkt.set_do_not_care_scapy(packet.Ether, 'dst')
    exp_pkt.set_do_not_care_scapy(packet.Ether, 'src')
    if (ip_version == 'ipv4'):
        exp_pkt.set_do_not_care_scapy(packet.IP, 'chksum')
        exp_pkt.set_do_not_care_scapy(packet.IP, 'ttl')
    else:
        exp_pkt.set_do_not_care_scapy(packet.IPv6, 'hlim')
    return exp_pkt
Generate the expected mask for a routed packet.
def expected_mask_routed_packet(self, pkt, ip_version):
    
    exp_pkt = pkt.copy()
    exp_pkt = mask.Mask(exp_pkt)
    exp_pkt.set_do_not_care_scapy(packet.Ether, 'dst')
    exp_pkt.set_do_not_care_scapy(packet.Ether, 'src')
    if (ip_version == 'ipv4'):
        exp_pkt.set_do_not_care_scapy(packet.IP, 'chksum')
        exp_pkt.set_do_not_care_scapy(packet.IP, 'ttl')
    else:
        exp_pkt.set_do_not_care_scapy(packet.IPv6, 'hlim')
    return exp_pkt