summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fastd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fastd.c b/src/fastd.c
index 2311ba8..350e6f3 100644
--- a/src/fastd.c
+++ b/src/fastd.c
@@ -125,6 +125,11 @@ static void on_up(fastd_context *ctx) {
chdir(ctx->conf->on_up_dir);
setenv("INTERFACE", ctx->ifname, 1);
+
+ char buf[6];
+ snprintf(buf, 6, "%u", ctx->conf->mtu);
+ setenv("MTU", buf, 1);
+
int ret = system(ctx->conf->on_up);
if (WIFSIGNALED(ret))