Searched refs:parse_mtu (Results 1 – 5 of 5) sorted by relevance
/systemd-251/src/test/ |
D | test-parse-util.c | 836 TEST(parse_mtu) { in TEST() argument 839 assert_se(parse_mtu(AF_UNSPEC, "1500", &mtu) >= 0 && mtu == 1500); in TEST() 840 assert_se(parse_mtu(AF_UNSPEC, "1400", &mtu) >= 0 && mtu == 1400); in TEST() 841 assert_se(parse_mtu(AF_UNSPEC, "65535", &mtu) >= 0 && mtu == 65535); in TEST() 842 assert_se(parse_mtu(AF_UNSPEC, "65536", &mtu) >= 0 && mtu == 65536); in TEST() 843 assert_se(parse_mtu(AF_UNSPEC, "4294967295", &mtu) >= 0 && mtu == 4294967295); in TEST() 844 assert_se(parse_mtu(AF_UNSPEC, "500", &mtu) >= 0 && mtu == 500); in TEST() 845 assert_se(parse_mtu(AF_UNSPEC, "1280", &mtu) >= 0 && mtu == 1280); in TEST() 846 assert_se(parse_mtu(AF_INET6, "1280", &mtu) >= 0 && mtu == 1280); in TEST() 847 assert_se(parse_mtu(AF_INET6, "1279", &mtu) == -ERANGE); in TEST() [all …]
|
/systemd-251/src/basic/ |
D | parse-util.h | 18 int parse_mtu(int family, const char *s, uint32_t *ret);
|
D | parse-util.c | 107 int parse_mtu(int family, const char *s, uint32_t *ret) { in parse_mtu() function
|
/systemd-251/src/network/generator/ |
D | network-generator.c | 374 return parse_mtu(family, mtu, &network->mtu); in network_set_mtu() 921 return parse_mtu(AF_UNSPEC, p + 1, &netdev->mtu); in parse_cmdline_bond()
|
/systemd-251/src/shared/ |
D | conf-parser.c | 1503 r = parse_mtu(ltype, rvalue, mtu); in config_parse_mtu()
|