parse-util: accept arbitrary MTU size when AF_UNSPEC
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 22 Nov 2023 20:03:43 +0000 (05:03 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 8 Dec 2023 01:47:42 +0000 (10:47 +0900)
commita0460dfed617a73f7dbf36a6eb7e474e887ae780
treeaaf1f82c268be8459c499d95273ffd05a4deeb08
parentf43ce810c408ee491b6edfc14c7680ee29274238
parse-util: accept arbitrary MTU size when AF_UNSPEC

When [Link] MTU= is specified in a .network file, we have no idea about
that what kind of interface will be configured with the .network file.
The maximum and minimum MTU size depend on the kind of interface.
So, we should not filter MTU eagerly in the parser.

Closes #30140.
src/basic/parse-util.c
src/test/test-parse-util.c
test/test-network-generator-conversion.sh