def METHOD_NAME(_):
    """Get active addresses on the network"""
    active = Arp.objects.filter(end_time=INFINITY)
    num_active = active.count()
    num_active_ipv6 = active.extra(where=["family(ip)=6"]).count()
    num_active_ipv4 = active.extra(where=["family(ip)=4"]).count()
    return JsonResponse(
        {"active": num_active, "ipv6": num_active_ipv6, "ipv4": num_active_ipv4}
    )