summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-03-29 20:04:22 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-03-29 20:04:22 +0200
commit8a6a48807d6c295250eef39620e156df305a9635 (patch)
tree67303d26539895e8b5f2243f4692e8182e053423
parentd2bf3c09479e5956dfcc0914c99082e6ea6f94dc (diff)
downloadfastd-8a6a48807d6c295250eef39620e156df305a9635.tar
fastd-8a6a48807d6c295250eef39620e156df305a9635.zip
Add MTU parameter to on-up command
-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))