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