(net_filter)
return valid
Test a network filter to verify if its valid
Test a network filter to verify if its valid
Test a network filter to verify if its valid
def test_filter(net_filter):
    """ Test a network filter to verify if its valid
    """
    valid = False
    try:
        scapy.arch.attach_filter(None, net_filter)
    except Scapy_Exception:
        pass
    except:
        valid = True
    return valid
def test_filter ( net_filter ) : valid = False try : scapy . arch . attach_filter ( None , net_filter ) except Scapy_Exception : pass except : valid = True return valid