Skip to content

Commit

Permalink
bpf: remove OpenBSD guards
Browse files Browse the repository at this point in the history
libpcap bpf functions are supported now.
  • Loading branch information
victorjulien committed Jun 16, 2023
1 parent a748164 commit 643e674
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions src/util-bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ void ConfSetBPFFilter(
}
}

#if !defined __OpenBSD__

/** protect bpf filter build, as it is not thread safe */
static SCMutex bpf_set_filter_lock = SCMUTEX_INITIALIZER;

Expand Down Expand Up @@ -96,5 +94,3 @@ int SCBPFCompile(int snaplen_arg, int linktype_arg, struct bpf_program *program,

return (ret);
}

#endif /* Not __OpenBSD__ */
3 changes: 0 additions & 3 deletions src/util-bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,10 @@
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__ */

0 comments on commit 643e674

Please sign in to comment.