def is_valid_ssdp_packet(data: bytes) ->bool:
    """Check if data is a valid and decodable packet."""
    return bool(data) and b'\n' in data and (data.startswith(
        b'NOTIFY * HTTP/1.1') or data.startswith(b'M-SEARCH * HTTP/1.1') or
        data.startswith(b'HTTP/1.1 200 OK'))
