Beispiel #1
0
def subnet_case(ip, sn):
    assert util.subnet(ip) == sn
Beispiel #2
0
def subnet_case(ip, sn):
    assert util.subnet(ip) == sn
Beispiel #3
0
def num_subnets(alerts):
    by_dst = groupby(alerts, lambda a: subnet(a['ip_dst']))
    return len(list(by_dst))
Beispiel #4
0
def num_subnets(alerts):
    by_dst = groupby(alerts, lambda a: subnet(a['ip_dst']))
    return len(list(by_dst))