summaryrefslogtreecommitdiffstats
path: root/daemon/network.h
diff options
context:
space:
mode:
authorAlex Forster <aforster@cloudflare.com>2018-12-06 00:01:33 +0100
committerPetr Špaček <petr.spacek@nic.cz>2018-12-13 12:26:38 +0100
commit622a61e9176889cee7c6a3ffb7fb505d114ce921 (patch)
treec6b577c6408d1b5819534fe9fef32cc1adfc4a79 /daemon/network.h
parentMerge branch 'tcp-timeout-trigger-fix' into 'master' (diff)
downloadknot-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.h2
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);