diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-27 16:17:24 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-04-27 16:17:24 +0200 |
commit | e3e5224901d88825348109f0d366d646de3ccb59 (patch) | |
tree | 007c45da43ecea48ba1221193da6af41ae089ee2 /src/peer.c | |
parent | 22a8e9ccb196df6de9a3c64518fd0e9fa0ee10fc (diff) | |
download | fastd-e3e5224901d88825348109f0d366d646de3ccb59.tar fastd-e3e5224901d88825348109f0d366d646de3ccb59.zip |
Automatically set interface MTU
Diffstat (limited to 'src/peer.c')
-rw-r--r-- | src/peer.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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); |