From: W.C.A. Wijngaards Date: Tue, 24 Mar 2020 08:36:27 +0000 (+0100) Subject: - Fixes for #200 : example.conf note and set_value for ip-dscp. X-Git-Tag: 1.11.0rc1~81 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7459b1dceb3c24b25d0b549ad287e39c0c0dc433;p=thirdparty%2Funbound.git - Fixes for #200 : example.conf note and set_value for ip-dscp. --- diff --git a/doc/example.conf.in b/doc/example.conf.in index dbc30a48c..091948e2d 100644 --- a/doc/example.conf.in +++ b/doc/example.conf.in @@ -119,6 +119,11 @@ server: # Linux only. On Linux you also have ip-transparent that is similar. # ip-freebind: no + # the value of the Differentiated Services Codepoint (DSCP) + # in the differentiated services field (DS) of the outgoing + # IP packets + # ip-dscp: 0 + # EDNS reassembly buffer to advertise to UDP peers (the actual buffer # is set with msg-buffer-size). 1472 can solve fragmentation (timeouts) # edns-buffer-size: 4096 diff --git a/util/config_file.c b/util/config_file.c index ef3a3912c..767d76b29 100644 --- a/util/config_file.c +++ b/util/config_file.c @@ -525,6 +525,7 @@ int config_set_option(struct config_file* cfg, const char* opt, else S_YNO("so-reuseport:", so_reuseport) else S_YNO("ip-transparent:", ip_transparent) else S_YNO("ip-freebind:", ip_freebind) + else S_NUMBER_OR_ZERO("ip-dscp:", ip_dscp) else S_MEMSIZE("rrset-cache-size:", rrset_cache_size) else S_POW2("rrset-cache-slabs:", rrset_cache_slabs) else S_YNO("prefetch:", prefetch)