]> granicus.if.org Git - pdns/commitdiff
Merge pull request #4006 from rgacogne/dnsdist-ebpf
authorbert hubert <bert.hubert@netherlabs.nl>
Fri, 24 Jun 2016 09:31:30 +0000 (10:31 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Jun 2016 09:31:30 +0000 (10:31 +0100)
dnsdist: Add eBPF source address and qname/qtype filtering

1  2 
pdns/README-dnsdist.md
pdns/dnsdist-lua2.cc
pdns/dnsdist.cc
pdns/dnsdist.hh
pdns/dnsdistdist/Makefile.am
pdns/dnsdistdist/configure.ac

index 3e3ccfd0e4aaf989bd1416d5f196eff6c5c468d1,1a5ae19aeb6ff34ebaad4540a44555d79a871ae5..85e394a051698f2fdd3b921724b3a9718a978bdd
@@@ -1060,9 -1136,14 +1136,14 @@@ Here are all functions
      * `addACL(netmask)`: add to the ACL set who can use this server
      * `setACL({netmask, netmask})`: replace the ACL set with these netmasks. Use `setACL({})` to reset the list, meaning no one can use us
      * `showACL()`: show our ACL set
+  * ClientState related:
+     * function `showBinds()`: list every local bind
+     * function `getBind(n)`: return the corresponding `ClientState` object
+     * member `attachFilter(BPFFilter)`: attach a BPF Filter to this bind
+     * member `toString()`: print the address this bind listens to
   * Network related:
 -    * `addLocal(netmask, [false], [false])`: add to addresses we listen on. Second optional parameter sets TCP/IP or not. Third optional parameter sets SO_REUSEPORT when available.
 -    * `setLocal(netmask, [false], [false])`: reset list of addresses we listen on to this address. Second optional parameter sets TCP/IP or not. Third optional parameter sets SO_REUSEPORT when available.
 +    * `addLocal(netmask, [true], [false])`: add to addresses we listen on. Second optional parameter sets TCP/IP or not. Third optional parameter sets SO_REUSEPORT when available.
 +    * `setLocal(netmask, [true], [false])`: reset list of addresses we listen on to this address. Second optional parameter sets TCP/IP or not. Third optional parameter sets SO_REUSEPORT when available.
   * Blocking related:
      * `addDomainBlock(domain)`: block queries within this domain
   * Carbon/Graphite/Metronome statistics related:
Simple merge
diff --cc pdns/dnsdist.cc
Simple merge
diff --cc pdns/dnsdist.hh
Simple merge
Simple merge
Simple merge