]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fixes for #200 : example.conf note and set_value for ip-dscp.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 24 Mar 2020 08:36:27 +0000 (09:36 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Tue, 24 Mar 2020 08:36:27 +0000 (09:36 +0100)
doc/example.conf.in
util/config_file.c

index dbc30a48c8d3ba7af386e1d09cb1f4c3b581d9b3..091948e2df9662d4cd134506a4310589a87791a9 100644 (file)
@@ -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
index ef3a3912c402b9512f81e63d1a90d3416fe21e43..767d76b29115cd5d0b4fac52f9bae306c7432d89 100644 (file)
@@ -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)