summaryrefslogtreecommitdiff
path: root/accel-pppd/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'accel-pppd/net.c')
-rw-r--r--accel-pppd/net.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/accel-pppd/net.c b/accel-pppd/net.c
index 26373fc..c619dee 100644
--- a/accel-pppd/net.c
+++ b/accel-pppd/net.c
@@ -45,6 +45,9 @@ __export __thread struct ap_net *net;
__export struct ap_net *def_net;
static int def_ns_fd;
+__export int conf_nl_rcvbuf = 1024 * 1024;
+__export int conf_nl_sndbuf = -1;
+
static int def_socket(int domain, int type, int proto)
{
return socket(domain, type, proto);
@@ -432,6 +435,14 @@ static void __init init()
{
const char *opt;
+ opt = conf_get_opt("common", "nl-rcv-buffer");
+ if (opt)
+ conf_nl_rcvbuf = atoi(opt);
+
+ opt = conf_get_opt("common", "nl-snd-buffer");
+ if (opt)
+ conf_nl_sndbuf = atoi(opt);
+
opt = conf_get_opt("common", "netns-run-dir");
if (opt)
conf_netns_run_dir = opt;