diff options
author | Alex Forster <aforster@cloudflare.com> | 2018-12-06 00:01:33 +0100 |
---|---|---|
committer | Petr Špaček <petr.spacek@nic.cz> | 2018-12-13 12:26:38 +0100 |
commit | 622a61e9176889cee7c6a3ffb7fb505d114ce921 (patch) | |
tree | c6b577c6408d1b5819534fe9fef32cc1adfc4a79 /daemon/network.h | |
parent | Merge branch 'tcp-timeout-trigger-fix' into 'master' (diff) | |
download | knot-resolver-622a61e9176889cee7c6a3ffb7fb505d114ce921.tar.xz knot-resolver-622a61e9176889cee7c6a3ffb7fb505d114ce921.zip |
daemon: support Linux eBPF socket filters with new net.bpf_set(fd) and net.bpf_clear() bindings
Diffstat (limited to 'daemon/network.h')
-rw-r--r-- | daemon/network.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/network.h b/daemon/network.h index 07d84adc..1554f44b 100644 --- a/daemon/network.h +++ b/daemon/network.h @@ -66,3 +66,5 @@ int network_close(struct network *net, const char *addr, uint16_t port); int network_set_tls_cert(struct network *net, const char *cert); int network_set_tls_key(struct network *net, const char *key); void network_new_hostname(struct network *net, struct engine *engine); +bool network_set_bpf(struct network *net, int bpf_fd); +void network_clear_bpf(struct network *net); |