]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: Add `IgnoreDdontFragment=` option for Fragmentation control (#28131)
authorYuxiang Zhu <vfreex+github@gmail.com>
Thu, 29 Jun 2023 10:11:52 +0000 (18:11 +0800)
committerGitHub <noreply@github.com>
Thu, 29 Jun 2023 10:11:52 +0000 (12:11 +0200)
commitb67e8a4e3ede0447d54eca96399b3d5f81dfaecd
treeed4d7a1bf87b5b9dddaad2c452f6df3b5598b877
parent9d5c20657af7b9fa6dc9e35abd28c1b63ddef75a
network: Add `IgnoreDdontFragment=` option for Fragmentation control (#28131)

From `ip-link(8)`:
> [no]ignore-df - enables/disables IPv4 DF
                      suppression on this tunnel.  Normally datagrams
                      that exceed the MTU will be fragmented; the
                      presence of the DF flag inhibits this, resulting
                      instead in an ICMP Unreachable (Fragmentation
                      Required) message.  Enabling this attribute causes
                      the DF flag to be ignored.

If this option is enabled for a GRE/GRETAP tunnel, the `DF` flag in the outer IP header
will not inherit the inner IP header's `DF` flag.

This is useful to transfer packets that exceed the MTU of the underlay
network.
man/systemd.netdev.xml
src/network/netdev/netdev-gperf.gperf
src/network/netdev/tunnel.c
src/network/netdev/tunnel.h
test/test-network/conf/25-erspan0-tunnel.netdev
test/test-network/conf/25-gretap-tunnel.netdev
test/test-network/systemd-networkd-tests.py