luci/modules/luci-mod-admin-full
Marc Benoit fbeea4ee33 luci-mod-admin-full: limit dns cachesize to 10000
The value of cachesize is hardcoded to 10000 in
dnsmasq-2.79/src/option.c to 10000 max

    case 'c':  /* --cache-size */
      {
        int size;

        if (!atoi_check(arg, &size))
          ret_err(gen_err);
        else
          {
            /* zero is OK, and means no caching. */

            if (size < 0)
              size = 0;
            else if (size > 10000)
              size = 10000;

            daemon->cachesize = size;
          }
        break;
      }

Tested on Netgear R7800
Signed-off-by: Marc Benoit <marcb62185@gmail.com>
2018-04-09 20:51:14 -04:00
..
htdocs/luci-static/resources Rework LuCI build system 2015-01-08 16:26:20 +01:00
luasrc luci-mod-admin-full: limit dns cachesize to 10000 2018-04-09 20:51:14 -04:00
root/etc/uci-defaults luci-mod-admin-full: figure out diagnostics host in postinstall 2016-10-06 17:13:23 +02:00
src luci: ignore '::1' in realtime connections 2017-02-10 21:38:25 -05:00
Makefile luci-mod-admin-full: add license tag 2017-06-13 13:40:20 +02:00