def _find_ip4_broadcast_addresses():
    """Yield each IP4 broadcast address, and the all-broadcast
    """
    yield "255.255.255.255"
    for interface in netifaces.interfaces():
        ifaddresses = netifaces.ifaddresses(interface)
        for family in ifaddresses:
            if family == netifaces.AF_INET:
                address_info = ifaddresses[family]
                for info in address_info:
                    if "broadcast" in info:
                        yield info['broadcast']
Yield each IP4 broadcast address, and the all-broadcast