diff options
| author | David Gibson <david@gibson.dropbear.id.au> | 2025-03-05 17:20:03 +1100 |
|---|---|---|
| committer | Stefano Brivio <sbrivio@redhat.com> | 2025-03-06 20:17:23 +0100 |
| commit | 1924e25f0723c0a86c1e33812f8e1d8aa045a146 (patch) | |
| tree | 8dd30fcdf7e78b44f3677ce8411fc078775fd994 /contrib/qemu/git: | |
| parent | 672d786de1c1f2aca32caedbcf440f710c4aecb5 (diff) | |
| download | passt-1924e25f0723c0a86c1e33812f8e1d8aa045a146.tar passt-1924e25f0723c0a86c1e33812f8e1d8aa045a146.tar.gz passt-1924e25f0723c0a86c1e33812f8e1d8aa045a146.tar.bz2 passt-1924e25f0723c0a86c1e33812f8e1d8aa045a146.tar.lz passt-1924e25f0723c0a86c1e33812f8e1d8aa045a146.tar.xz passt-1924e25f0723c0a86c1e33812f8e1d8aa045a146.tar.zst passt-1924e25f0723c0a86c1e33812f8e1d8aa045a146.zip | |
conf: Be more precise about minimum MTUs
Currently we reject the -m option if given a value less than ETH_MIN_MTU
(68). That define is derived from the kernel, but its name is misleading:
it doesn't really have anything to do with Ethernet per se, but is rather
the minimum payload any L2 link must be able to handle in order to carry
IPv4. For IPv6, it's not sufficient: that requires an MTU of at least
1280.
Newer kernels have better named constants IPV4_MIN_MTU and IPv6_MIN_MTU.
Copy and use those constants instead, along with some more specific error
messages.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/qemu/git:')
0 files changed, 0 insertions, 0 deletions
