[Dnsmasq-discuss] [PATCH] Remove upper limit of 10, 000 for cache size

Dominik DL6ER dl6er at dl6er.de
Tue May 8 16:52:59 BST 2018


>From c3fdb31d68d80e08679524ebe02113fe1f11b0b2 Mon Sep 17 00:00:00 2001
From: Dominik Derigs <dl6er at dl6er.de>
Date: Tue, 8 May 2018 18:44:41 +0200
Subject: [PATCH] Remove upper limit of 10,000 for cache size. We should
allow
 users to set any (maximum) cache size they like to set. Even embedded
devices
 usually ship with at least 1 GB of RAM nowadays so memory shouldn't be an
 issue. Furthermore, this clipping is also not documented in the man page.
To: dnsmasq-discuss at lists.thekelleys.org.uk

Signed-off-by: Dominik Derigs <dl6er at dl6er.de>
---
 src/option.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/option.c b/src/option.c
index 65df93a..180517a 100644
--- a/src/option.c
+++ b/src/option.c
@@ -2589,8 +2589,6 @@ static int one_opt(int option, char *arg, char
*errstr, char *gen_err, int comma
           
            if (size < 0)
              size = 0;
-           else if (size > 10000)
-             size = 10000;
           
            daemon->cachesize = size;
          }
-- 
2.7.4




More information about the Dnsmasq-discuss mailing list