diff options
-rw-r--r-- | src/fastd.c | 5 |
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)) |