diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-29 20:04:22 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-03-29 20:04:22 +0200 |
commit | 8a6a48807d6c295250eef39620e156df305a9635 (patch) | |
tree | 67303d26539895e8b5f2243f4692e8182e053423 | |
parent | d2bf3c09479e5956dfcc0914c99082e6ea6f94dc (diff) | |
download | fastd-8a6a48807d6c295250eef39620e156df305a9635.tar fastd-8a6a48807d6c295250eef39620e156df305a9635.zip |
Add MTU parameter to on-up command
-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)) |