]> git.ipfire.org Git - thirdparty/pdns.git/commit
Add support for FreeBSD's SO_REUSEPORT_LB 9157/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 May 2020 08:50:26 +0000 (10:50 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 26 May 2020 08:50:26 +0000 (10:50 +0200)
commit665821e139db484333eebb2952b1a158a32b91d0
tree5c30148fc776ff5a4733d8ca757037d20f1c2bff
parenta0289598b9517ba766f8e3a69357a91067bfc1c2
Add support for FreeBSD's SO_REUSEPORT_LB

On FreeBSD, SO_REUSEPORT "permits multiple instances of a program to each
receive UDP/IP multicast or broadcast datagrams destined for the bound port",
while SO_REUSEPORT_LB distributes them "among the sharing processes based on
a hash function of local port number, foreign IP address and port number".
pdns/Makefile.am
pdns/dnsdist.cc
pdns/dumresp.cc
pdns/iputils.cc
pdns/iputils.hh
pdns/nameserver.cc
pdns/nameserver.hh
pdns/pdns_recursor.cc