chiark / gitweb /
networkd: sit-tunnel add support for pmtudisc
authorSusant Sahani <susant@redhat.com>
Thu, 22 May 2014 06:29:19 +0000 (11:59 +0530)
committerTom Gundersen <teg@jklm.no>
Mon, 2 Jun 2014 14:16:02 +0000 (16:16 +0200)
commita9f434cf00d1d36d9a013b9739efe69653dd7279
tree9b420807b78cac20ef55398cb95105a63ec698de
parent8bb088c5d44e566eb101e3f093d690aeb2a82285
networkd: sit-tunnel add support for pmtudisc

This patch adds path of mtu discovery for sit tunnel.
To enable/disable DiscoverPathMTU is introduced.

Example configuration

file: sit.netdev
[NetDev]
Name=sit-tun
Kind=sit
MTUBytes=1480

[Tunnel]
DiscoverPathMTU=1
Local=X.X.X.X
Remote=X.X.X.X

By default pmtudisc is turned on , if DiscoverPathMTU
is missing from the config. To turn it off
DiscoverPathMTU=0 needs to be set.
src/network/networkd-netdev-gperf.gperf
src/network/networkd-netdev.c
src/network/networkd-tunnel.c
src/network/networkd.h