]> The Tcpdump Group git mirrors - libpcap/blobdiff - gencode.c
Fix crash with "ether dst 1::2" as a filter.
[libpcap] / gencode.c
index 5e8bc4c2c3f883581cc2941caee42234ae35c943..7bb07fb1130d1db1ffcfa7d0c7bf67cdd50deb80 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -4573,6 +4573,9 @@ gen_host6(addr, mask, proto, dir, type)
        case Q_DEFAULT:
                return gen_host6(addr, mask, Q_IPV6, dir, type);
 
+       case Q_LINK:
+               bpf_error("link-layer modifier applied to ip6 %s", typestr);
+
        case Q_IP:
                bpf_error("'ip' modifier applied to ip6 %s", typestr);