Home
last modified time | relevance | path

Searched refs:parse_range (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/test/
Dtest-parse-util.c237 TEST(parse_range) { in TEST() argument
241 assert_se(parse_range("111", &lower, &upper) == 0); in TEST()
245 assert_se(parse_range("111-123", &lower, &upper) == 0); in TEST()
249 assert_se(parse_range("123-111", &lower, &upper) == 0); in TEST()
253 assert_se(parse_range("123-123", &lower, &upper) == 0); in TEST()
257 assert_se(parse_range("0", &lower, &upper) == 0); in TEST()
261 assert_se(parse_range("0-15", &lower, &upper) == 0); in TEST()
265 assert_se(parse_range("15-0", &lower, &upper) == 0); in TEST()
269 assert_se(parse_range("128-65535", &lower, &upper) == 0); in TEST()
273 assert_se(parse_range("1024-4294967295", &lower, &upper) == 0); in TEST()
[all …]
/systemd-251/src/shared/
Dvlan-util.c29 r = parse_range(p, &lower, &upper); in parse_vid_range()
Dcpu-set-util.c164 r = parse_range(word, &cpu_lower, &cpu_upper); in parse_cpu_set_full()
/systemd-251/src/basic/
Dparse-util.c259 int parse_range(const char *t, unsigned *lower, unsigned *upper) { in parse_range() function
663 r = parse_range(s, &l, &h); in parse_ip_port_range()
Dparse-util.h21 int parse_range(const char *t, unsigned *lower, unsigned *upper);
/systemd-251/src/network/netdev/
Dvlan.c163 r = parse_range(w, &m->from, &m->to); in config_parse_vlan_qos_maps()