Lines Matching refs:rvalue
1152 const char *rvalue, in config_parse_routing_policy_rule_tos() argument
1163 assert(rvalue); in config_parse_routing_policy_rule_tos()
1170 r = safe_atou8(rvalue, &n->tos); in config_parse_routing_policy_rule_tos()
1172 …yntax(unit, LOG_WARNING, filename, line, r, "Failed to parse RPDB rule TOS, ignoring: %s", rvalue); in config_parse_routing_policy_rule_tos()
1188 const char *rvalue, in config_parse_routing_policy_rule_priority() argument
1199 assert(rvalue); in config_parse_routing_policy_rule_priority()
1206 if (isempty(rvalue)) { in config_parse_routing_policy_rule_priority()
1213 r = safe_atou32(rvalue, &n->priority); in config_parse_routing_policy_rule_priority()
1215 …(unit, LOG_WARNING, filename, line, r, "Failed to parse RPDB rule priority, ignoring: %s", rvalue); in config_parse_routing_policy_rule_priority()
1232 const char *rvalue, in config_parse_routing_policy_rule_table() argument
1243 assert(rvalue); in config_parse_routing_policy_rule_table()
1250 r = manager_get_route_table_from_string(network->manager, rvalue, &n->table); in config_parse_routing_policy_rule_table()
1253 … "Could not parse RPDB rule route table number \"%s\", ignoring assignment: %m", rvalue); in config_parse_routing_policy_rule_table()
1269 const char *rvalue, in config_parse_routing_policy_rule_fwmark_mask() argument
1280 assert(rvalue); in config_parse_routing_policy_rule_fwmark_mask()
1287 r = parse_fwmark_fwmask(rvalue, &n->fwmark, &n->fwmask); in config_parse_routing_policy_rule_fwmark_mask()
1289 …RNING, filename, line, r, "Failed to parse RPDB rule firewall mark or mask, ignoring: %s", rvalue); in config_parse_routing_policy_rule_fwmark_mask()
1305 const char *rvalue, in config_parse_routing_policy_rule_prefix() argument
1318 assert(rvalue); in config_parse_routing_policy_rule_prefix()
1334 r = in_addr_prefix_from_string_auto(rvalue, &n->family, buffer, prefixlen); in config_parse_routing_policy_rule_prefix()
1336 r = in_addr_prefix_from_string(rvalue, n->family, buffer, prefixlen); in config_parse_routing_policy_rule_prefix()
1338 …t, LOG_WARNING, filename, line, r, "RPDB rule prefix is invalid, ignoring assignment: %s", rvalue); in config_parse_routing_policy_rule_prefix()
1354 const char *rvalue, in config_parse_routing_policy_rule_device() argument
1365 assert(rvalue); in config_parse_routing_policy_rule_device()
1372 if (!ifname_valid(rvalue)) { in config_parse_routing_policy_rule_device()
1374 … "Invalid interface name '%s' in %s=, ignoring assignment.", rvalue, lvalue); in config_parse_routing_policy_rule_device()
1378 r = free_and_strdup(streq(lvalue, "IncomingInterface") ? &n->iif : &n->oif, rvalue); in config_parse_routing_policy_rule_device()
1394 const char *rvalue, in config_parse_routing_policy_rule_port_range() argument
1406 assert(rvalue); in config_parse_routing_policy_rule_port_range()
1413 r = parse_ip_port_range(rvalue, &low, &high); in config_parse_routing_policy_rule_port_range()
1415 …it, LOG_WARNING, filename, line, r, "Failed to parse routing policy rule port range '%s'", rvalue); in config_parse_routing_policy_rule_port_range()
1439 const char *rvalue, in config_parse_routing_policy_rule_ip_protocol() argument
1450 assert(rvalue); in config_parse_routing_policy_rule_ip_protocol()
1457 r = parse_ip_protocol(rvalue); in config_parse_routing_policy_rule_ip_protocol()
1459 …lename, line, r, "Failed to parse IP protocol '%s' for routing policy rule, ignoring: %m", rvalue); in config_parse_routing_policy_rule_ip_protocol()
1477 const char *rvalue, in config_parse_routing_policy_rule_invert() argument
1488 assert(rvalue); in config_parse_routing_policy_rule_invert()
1495 r = parse_boolean(rvalue); in config_parse_routing_policy_rule_invert()
1497 …ax(unit, LOG_WARNING, filename, line, r, "Failed to parse RPDB rule invert, ignoring: %s", rvalue); in config_parse_routing_policy_rule_invert()
1515 const char *rvalue, in config_parse_routing_policy_rule_family() argument
1527 assert(rvalue); in config_parse_routing_policy_rule_family()
1534 a = routing_policy_rule_address_family_from_string(rvalue); in config_parse_routing_policy_rule_family()
1537 "Invalid address family '%s', ignoring.", rvalue); in config_parse_routing_policy_rule_family()
1555 const char *rvalue, in config_parse_routing_policy_rule_uid_range() argument
1567 assert(rvalue); in config_parse_routing_policy_rule_uid_range()
1574 r = get_user_creds(&rvalue, &start, NULL, NULL, NULL, 0); in config_parse_routing_policy_rule_uid_range()
1578 r = parse_uid_range(rvalue, &start, &end); in config_parse_routing_policy_rule_uid_range()
1581 "Invalid uid or uid range '%s', ignoring: %m", rvalue); in config_parse_routing_policy_rule_uid_range()
1601 const char *rvalue, in config_parse_routing_policy_rule_suppress_prefixlen() argument
1612 assert(rvalue); in config_parse_routing_policy_rule_suppress_prefixlen()
1619 r = parse_ip_prefix_length(rvalue, &n->suppress_prefixlen); in config_parse_routing_policy_rule_suppress_prefixlen()
1621 …OG_WARNING, filename, line, r, "Prefix length outside of valid range 0-128, ignoring: %s", rvalue); in config_parse_routing_policy_rule_suppress_prefixlen()
1625 …_WARNING, filename, line, r, "Failed to parse RPDB rule suppress_prefixlen, ignoring: %s", rvalue); in config_parse_routing_policy_rule_suppress_prefixlen()
1641 const char *rvalue, in config_parse_routing_policy_rule_suppress_ifgroup() argument
1653 assert(rvalue); in config_parse_routing_policy_rule_suppress_ifgroup()
1660 if (isempty(rvalue)) { in config_parse_routing_policy_rule_suppress_ifgroup()
1665 r = safe_atoi32(rvalue, &suppress_ifgroup); in config_parse_routing_policy_rule_suppress_ifgroup()
1668 … "Failed to parse SuppressInterfaceGroup=, ignoring assignment: %s", rvalue); in config_parse_routing_policy_rule_suppress_ifgroup()
1673 …ue of SuppressInterfaceGroup= must be in the range 0…2147483647, ignoring assignment: %s", rvalue); in config_parse_routing_policy_rule_suppress_ifgroup()
1689 const char *rvalue, in config_parse_routing_policy_rule_type() argument
1700 assert(rvalue); in config_parse_routing_policy_rule_type()
1707 t = fr_act_type_from_string(rvalue); in config_parse_routing_policy_rule_type()
1710 "Could not parse FIB rule type \"%s\", ignoring assignment: %m", rvalue); in config_parse_routing_policy_rule_type()