X-Git-Url: https://git.tcpdump.org/libpcap/blobdiff_plain/44ef59e3e254156a7afa7c7aff614887eee23be9..8e213f29064a0ab5a148efb443423ed60b5eb432:/gencode.c diff --git a/gencode.c b/gencode.c index af0f3017..ddc587c5 100644 --- a/gencode.c +++ b/gencode.c @@ -5557,15 +5557,8 @@ gen_protochain(v, proto, dir) * branches, and backward branch support is unlikely to appear * in kernel BPF engines.) */ - switch (linktype) { - - case DLT_IEEE802_11: - case DLT_PRISM_HEADER: - case DLT_IEEE802_11_RADIO_AVS: - case DLT_IEEE802_11_RADIO: - case DLT_PPI: - bpf_error("'protochain' not supported with 802.11"); - } + if (off_linkpl.is_variable) + bpf_error("'protochain' not supported with variable length headers"); no_optimize = 1; /*this code is not compatible with optimzer yet */