summaryrefslogtreecommitdiffstats
path: root/src/peer.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2012-04-27 16:17:24 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2012-04-27 16:17:24 +0200
commite3e5224901d88825348109f0d366d646de3ccb59 (patch)
tree007c45da43ecea48ba1221193da6af41ae089ee2 /src/peer.c
parent22a8e9ccb196df6de9a3c64518fd0e9fa0ee10fc (diff)
downloadfastd-e3e5224901d88825348109f0d366d646de3ccb59.tar
fastd-e3e5224901d88825348109f0d366d646de3ccb59.zip
Automatically set interface MTU
Diffstat (limited to 'src/peer.c')
-rw-r--r--src/peer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/peer.c b/src/peer.c
index f3d9da8..3118ffc 100644
--- a/src/peer.c
+++ b/src/peer.c
@@ -43,8 +43,6 @@ static void on_establish(fastd_context *ctx, fastd_peer *peer) {
setenv("INTERFACE", ctx->ifname, 1);
char buf[INET6_ADDRSTRLEN];
- snprintf(buf, sizeof(buf), "%u", ctx->conf->mtu);
- setenv("MTU", buf, 1);
if (peer->config && peer->config->name)
setenv("PEER_NAME", peer->config->name, 1);
@@ -102,8 +100,6 @@ static void on_disestablish(fastd_context *ctx, fastd_peer *peer) {
setenv("INTERFACE", ctx->ifname, 1);
char buf[INET6_ADDRSTRLEN];
- snprintf(buf, sizeof(buf), "%u", ctx->conf->mtu);
- setenv("MTU", buf, 1);
if (peer->config && peer->config->name)
setenv("PEER_NAME", peer->config->name, 1);