]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
bpf: remove OpenBSD guards
authorVictor Julien <vjulien@oisf.net>
Fri, 16 Jun 2023 09:41:57 +0000 (11:41 +0200)
committerVictor Julien <vjulien@oisf.net>
Tue, 27 Jun 2023 14:21:59 +0000 (16:21 +0200)
libpcap bpf functions are supported now.

(cherry picked from commit 643e674cb216b3824fd5a3f4dd2d9f69847fc431)

src/util-bpf.c
src/util-bpf.h

index dd43201ad64ed04e2ac4f03c4a751e7efc8e29b0..7f7149ef3c54c52010b88fc7641eec54affaa5b5 100644 (file)
@@ -51,8 +51,6 @@ void ConfSetBPFFilter(
     }
 }
 
-#if !defined __OpenBSD__
-
 /** protect bpf filter build, as it is not thread safe */
 static SCMutex bpf_set_filter_lock = SCMUTEX_INITIALIZER;
 
@@ -97,5 +95,3 @@ int SCBPFCompile(int snaplen_arg, int linktype_arg, struct bpf_program *program,
 
     return (ret);
 }
-
-#endif /* Not __OpenBSD__ */
index 341c15845331e733ce9e9d24361ecafc1941b058..8196077f8a07f576dc33193a74f5322f4ad01c7e 100644 (file)
 void ConfSetBPFFilter(
         ConfNode *if_root, ConfNode *if_default, const char *iface, const char **bpf_filter);
 
-#if !defined __OpenBSD__
-
 int SCBPFCompile(int snaplen_arg, int linktype_arg, struct bpf_program *program,
                  const char *buf, int optimize, uint32_t mask,
                  char *errbuf, size_t errbuf_len);
 
 void SCBPFFree(struct bpf_program *program);
 
-#endif /* Not __OpenBSD__ */
 #endif /* __UTIL_BPF_H__ */