/systemd-251/src/core/ |
D | load-fragment.c | 241 const char *rvalue, in config_parse_unit_deps() argument 250 assert(rvalue); in config_parse_unit_deps() 252 for (const char *p = rvalue;;) { in config_parse_unit_deps() 262 … log_syntax(unit, LOG_WARNING, filename, line, r, "Invalid syntax, ignoring: %s", rvalue); in config_parse_unit_deps() 298 const char *rvalue, in config_parse_obsolete_unit_deps() argument 305 …arse_unit_deps(unit, filename, line, section, section_line, lvalue, ltype, rvalue, data, userdata); in config_parse_obsolete_unit_deps() 316 const char *rvalue, in config_parse_unit_string_printf() argument 326 assert(rvalue); in config_parse_unit_string_printf() 329 r = unit_full_printf(u, rvalue, &k); in config_parse_unit_string_printf() 331 …LOG_WARNING, filename, line, r, "Failed to resolve unit specifiers in '%s', ignoring: %m", rvalue); in config_parse_unit_string_printf() [all …]
|
/systemd-251/src/shared/ |
D | conf-parser.c | 129 const char *rvalue, in next_assignment() argument 142 assert(rvalue); in next_assignment() 152 lvalue, ltype, rvalue, data, userdata); in next_assignment() 785 const char *rvalue, in config_parse_iec_size() argument 795 assert(rvalue); in config_parse_iec_size() 798 r = parse_size(rvalue, 1024, &v); in config_parse_iec_size() 802 …tax(unit, LOG_WARNING, filename, line, r, "Failed to parse size value '%s', ignoring: %m", rvalue); in config_parse_iec_size() 818 const char *rvalue, in config_parse_si_uint64() argument 827 assert(rvalue); in config_parse_si_uint64() 830 r = parse_size(rvalue, 1000, sz); in config_parse_si_uint64() [all …]
|
D | netif-sriov.c | 357 const char *rvalue, in config_parse_sr_iov_uint32() argument 368 assert(rvalue); in config_parse_sr_iov_uint32() 375 if (isempty(rvalue)) { in config_parse_sr_iov_uint32() 389 r = safe_atou32(rvalue, &k); in config_parse_sr_iov_uint32() 392 "Failed to parse SR-IOV '%s=', ignoring assignment: %s", lvalue, rvalue); in config_parse_sr_iov_uint32() 425 const char *rvalue, in config_parse_sr_iov_vlan_proto() argument 435 assert(rvalue); in config_parse_sr_iov_vlan_proto() 442 if (isempty(rvalue) || streq(rvalue, "802.1Q")) in config_parse_sr_iov_vlan_proto() 444 else if (streq(rvalue, "802.1ad")) in config_parse_sr_iov_vlan_proto() 448 "Invalid SR-IOV '%s=', ignoring assignment: %s", lvalue, rvalue); in config_parse_sr_iov_vlan_proto() [all …]
|
D | net-condition.c | 191 const char *rvalue, in config_parse_net_condition() argument 201 assert(rvalue); in config_parse_net_condition() 204 if (isempty(rvalue)) { in config_parse_net_condition() 209 negate = rvalue[0] == '!'; in config_parse_net_condition() 211 rvalue++; in config_parse_net_condition() 213 c = condition_new(cond, rvalue, false, negate); in config_parse_net_condition() 232 const char *rvalue, in config_parse_match_strv() argument 236 const char *p = rvalue; in config_parse_match_strv() 243 assert(rvalue); in config_parse_match_strv() 246 if (isempty(rvalue)) { in config_parse_match_strv() [all …]
|
/systemd-251/src/nspawn/ |
D | nspawn-settings.c | 248 const char *rvalue, in config_parse_expose_port() argument 257 assert(rvalue); in config_parse_expose_port() 259 r = expose_port_parse(&s->expose_ports, rvalue); in config_parse_expose_port() 261 …syntax(unit, LOG_WARNING, filename, line, r, "Duplicate port specification, ignoring: %s", rvalue); in config_parse_expose_port() 263 … log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse host port %s: %m", rvalue); in config_parse_expose_port() 276 const char *rvalue, in config_parse_capability() argument 285 assert(rvalue); in config_parse_capability() 290 r = extract_first_word(&rvalue, &word, NULL, 0); in config_parse_capability() 294 …unit, LOG_WARNING, filename, line, r, "Failed to extract capability string, ignoring: %s", rvalue); in config_parse_capability() 325 const char *rvalue, in config_parse_pivot_root() argument [all …]
|
/systemd-251/src/network/ |
D | networkd-dhcp-common.c | 274 const char *rvalue, in config_parse_dhcp() argument 282 assert(rvalue); in config_parse_dhcp() 289 s = address_family_from_string(rvalue); in config_parse_dhcp() 295 s = dhcp_deprecated_address_family_from_string(rvalue); in config_parse_dhcp() 298 "Failed to parse DHCP option, ignoring: %s", rvalue); in config_parse_dhcp() 304 rvalue, address_family_to_string(s)); in config_parse_dhcp() 319 const char *rvalue, in config_parse_dhcp_or_ra_route_metric() argument 330 assert(rvalue); in config_parse_dhcp_or_ra_route_metric() 333 r = safe_atou32(rvalue, &metric); in config_parse_dhcp_or_ra_route_metric() 336 "Failed to parse RouteMetric=%s, ignoring assignment: %m", rvalue); in config_parse_dhcp_or_ra_route_metric() [all …]
|
D | networkd-can.c | 148 const char *rvalue, in config_parse_can_bitrate() argument 158 assert(rvalue); in config_parse_can_bitrate() 161 r = parse_size(rvalue, 1000, &sz); in config_parse_can_bitrate() 164 "Failed to parse can bitrate '%s', ignoring: %m", rvalue); in config_parse_can_bitrate() 188 const char *rvalue, in config_parse_can_time_quanta() argument 197 assert(rvalue); in config_parse_can_time_quanta() 200 r = parse_nsec(rvalue, &val); in config_parse_can_time_quanta() 203 "Failed to parse can time quanta '%s', ignoring: %m", rvalue); in config_parse_can_time_quanta() 226 const char *rvalue, in config_parse_can_restart_usec() argument 235 assert(rvalue); in config_parse_can_restart_usec() [all …]
|
D | networkd-util.c | 127 const char *rvalue, in config_parse_address_family_with_kernel() argument 135 assert(rvalue); in config_parse_address_family_with_kernel() 146 s = address_family_from_string(rvalue); in config_parse_address_family_with_kernel() 148 if (streq(rvalue, "kernel")) in config_parse_address_family_with_kernel() 151 …x(unit, LOG_WARNING, filename, line, 0, "Failed to parse IPForward= option, ignoring: %s", rvalue); in config_parse_address_family_with_kernel() 169 const char *rvalue, in config_parse_ip_masquerade() argument 176 if (isempty(rvalue)) { in config_parse_ip_masquerade() 181 r = parse_boolean(rvalue); in config_parse_ip_masquerade() 187 rvalue); in config_parse_ip_masquerade() 193 a = ip_masquerade_address_family_from_string(rvalue); in config_parse_ip_masquerade() [all …]
|
D | networkd-bridge-fdb.c | 280 const char *rvalue, in config_parse_fdb_hwaddr() argument 291 assert(rvalue); in config_parse_fdb_hwaddr() 298 r = parse_ether_addr(rvalue, &fdb->mac_addr); in config_parse_fdb_hwaddr() 300 …(unit, LOG_WARNING, filename, line, r, "Not a valid MAC address, ignoring assignment: %s", rvalue); in config_parse_fdb_hwaddr() 317 const char *rvalue, in config_parse_fdb_vlan_id() argument 328 assert(rvalue); in config_parse_fdb_vlan_id() 337 rvalue, &fdb->vlan_id, userdata); in config_parse_fdb_vlan_id() 353 const char *rvalue, in config_parse_fdb_destination() argument 364 assert(rvalue); in config_parse_fdb_destination() 371 r = in_addr_from_string_auto(rvalue, &fdb->family, &fdb->destination_addr); in config_parse_fdb_destination() [all …]
|
D | networkd-radv.c | 792 const char *rvalue, in config_parse_prefix() argument 804 assert(rvalue); in config_parse_prefix() 811 r = in_addr_prefix_from_string(rvalue, AF_INET6, &a, &p->prefixlen); in config_parse_prefix() 814 "Prefix is invalid, ignoring assignment: %s", rvalue); in config_parse_prefix() 833 const char *rvalue, in config_parse_prefix_boolean() argument 844 assert(rvalue); in config_parse_prefix_boolean() 851 r = parse_boolean(rvalue); in config_parse_prefix_boolean() 854 "Failed to parse %s=, ignoring assignment: %s", lvalue, rvalue); in config_parse_prefix_boolean() 879 const char *rvalue, in config_parse_prefix_lifetime() argument 891 assert(rvalue); in config_parse_prefix_lifetime() [all …]
|
D | networkd-network.c | 828 const char *rvalue, in config_parse_stacked_netdev() argument 839 assert(rvalue); in config_parse_stacked_netdev() 853 if (!ifname_valid(rvalue)) { in config_parse_stacked_netdev() 855 "Invalid netdev name in %s=, ignoring assignment: %s", lvalue, rvalue); in config_parse_stacked_netdev() 859 name = strdup(rvalue); in config_parse_stacked_netdev() 886 const char *rvalue, in config_parse_domains() argument 895 assert(rvalue); in config_parse_domains() 898 if (isempty(rvalue)) { in config_parse_domains() 904 for (const char *p = rvalue;;) { in config_parse_domains() 914 … "Failed to extract search or route domain, ignoring: %s", rvalue); in config_parse_domains() [all …]
|
D | networkd-routing-policy-rule.c | 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 [all …]
|
/systemd-251/src/network/tc/ |
D | cake.c | 136 const char *rvalue, in config_parse_cake_bandwidth() argument 148 assert(rvalue); in config_parse_cake_bandwidth() 162 if (isempty(rvalue)) { in config_parse_cake_bandwidth() 169 r = parse_size(rvalue, 1000, &k); in config_parse_cake_bandwidth() 173 lvalue, rvalue); in config_parse_cake_bandwidth() 191 const char *rvalue, in config_parse_cake_overhead() argument 203 assert(rvalue); in config_parse_cake_overhead() 217 if (isempty(rvalue)) { in config_parse_cake_overhead() 223 r = safe_atoi32(rvalue, &v); in config_parse_cake_overhead() 227 lvalue, rvalue); in config_parse_cake_overhead() [all …]
|
D | fq.c | 113 const char *rvalue, in config_parse_fair_queueing_u32() argument 125 assert(rvalue); in config_parse_fair_queueing_u32() 150 if (isempty(rvalue)) { in config_parse_fair_queueing_u32() 157 r = safe_atou32(rvalue, p); in config_parse_fair_queueing_u32() 161 lvalue, rvalue); in config_parse_fair_queueing_u32() 178 const char *rvalue, in config_parse_fair_queueing_size() argument 191 assert(rvalue); in config_parse_fair_queueing_size() 212 if (isempty(rvalue)) { in config_parse_fair_queueing_size() 219 r = parse_size(rvalue, 1024, &sz); in config_parse_fair_queueing_size() 223 lvalue, rvalue); in config_parse_fair_queueing_size() [all …]
|
D | fq-codel.c | 105 const char *rvalue, in config_parse_fair_queueing_controlled_delay_u32() argument 117 assert(rvalue); in config_parse_fair_queueing_controlled_delay_u32() 138 if (isempty(rvalue)) { in config_parse_fair_queueing_controlled_delay_u32() 145 r = safe_atou32(rvalue, p); in config_parse_fair_queueing_controlled_delay_u32() 149 lvalue, rvalue); in config_parse_fair_queueing_controlled_delay_u32() 166 const char *rvalue, in config_parse_fair_queueing_controlled_delay_usec() argument 178 assert(rvalue); in config_parse_fair_queueing_controlled_delay_usec() 201 if (isempty(rvalue)) { in config_parse_fair_queueing_controlled_delay_usec() 211 r = parse_sec(rvalue, p); in config_parse_fair_queueing_controlled_delay_usec() 215 lvalue, rvalue); in config_parse_fair_queueing_controlled_delay_usec() [all …]
|
D | htb.c | 56 const char *rvalue, in config_parse_hierarchy_token_bucket_default_class() argument 67 assert(rvalue); in config_parse_hierarchy_token_bucket_default_class() 81 if (isempty(rvalue)) { in config_parse_hierarchy_token_bucket_default_class() 88 r = safe_atou32_full(rvalue, 16, &htb->default_class); in config_parse_hierarchy_token_bucket_default_class() 92 lvalue, rvalue); in config_parse_hierarchy_token_bucket_default_class() 109 const char *rvalue, in config_parse_hierarchy_token_bucket_u32() argument 120 assert(rvalue); in config_parse_hierarchy_token_bucket_u32() 134 if (isempty(rvalue)) { in config_parse_hierarchy_token_bucket_u32() 141 r = safe_atou32(rvalue, &htb->rate_to_quantum); in config_parse_hierarchy_token_bucket_u32() 145 lvalue, rvalue); in config_parse_hierarchy_token_bucket_u32() [all …]
|
D | codel.c | 85 const char *rvalue, in config_parse_controlled_delay_u32() argument 96 assert(rvalue); in config_parse_controlled_delay_u32() 110 if (isempty(rvalue)) { in config_parse_controlled_delay_u32() 117 r = safe_atou32(rvalue, &cd->packet_limit); in config_parse_controlled_delay_u32() 121 lvalue, rvalue); in config_parse_controlled_delay_u32() 138 const char *rvalue, in config_parse_controlled_delay_usec() argument 150 assert(rvalue); in config_parse_controlled_delay_usec() 173 if (isempty(rvalue)) { in config_parse_controlled_delay_usec() 183 r = parse_sec(rvalue, p); in config_parse_controlled_delay_usec() 187 lvalue, rvalue); in config_parse_controlled_delay_usec() [all …]
|
D | netem.c | 59 const char *rvalue, in config_parse_network_emulator_delay() argument 71 assert(rvalue); in config_parse_network_emulator_delay() 85 if (isempty(rvalue)) { in config_parse_network_emulator_delay() 95 r = parse_sec(rvalue, &u); in config_parse_network_emulator_delay() 99 lvalue, rvalue); in config_parse_network_emulator_delay() 121 const char *rvalue, in config_parse_network_emulator_rate() argument 133 assert(rvalue); in config_parse_network_emulator_rate() 147 if (isempty(rvalue)) { in config_parse_network_emulator_rate() 157 r = parse_tc_percent(rvalue, &rate); in config_parse_network_emulator_rate() 161 lvalue, rvalue); in config_parse_network_emulator_rate() [all …]
|
D | qfq.c | 61 const char *rvalue, in config_parse_quick_fair_queueing_weight() argument 73 assert(rvalue); in config_parse_quick_fair_queueing_weight() 87 if (isempty(rvalue)) { in config_parse_quick_fair_queueing_weight() 93 r = safe_atou32(rvalue, &v); in config_parse_quick_fair_queueing_weight() 97 lvalue, rvalue); in config_parse_quick_fair_queueing_weight() 104 lvalue, rvalue); in config_parse_quick_fair_queueing_weight() 122 const char *rvalue, in config_parse_quick_fair_queueing_max_packet() argument 134 assert(rvalue); in config_parse_quick_fair_queueing_max_packet() 148 if (isempty(rvalue)) { in config_parse_quick_fair_queueing_max_packet() 154 r = parse_size(rvalue, 1024, &v); in config_parse_quick_fair_queueing_max_packet() [all …]
|
/systemd-251/src/resolve/ |
D | resolved-conf.c | 137 const char *rvalue, in config_parse_dns_servers() argument 146 assert(rvalue); in config_parse_dns_servers() 149 if (isempty(rvalue)) in config_parse_dns_servers() 154 r = manager_parse_dns_server_string_and_warn(m, ltype, rvalue); in config_parse_dns_servers() 157 "Failed to parse DNS server string '%s', ignoring.", rvalue); in config_parse_dns_servers() 180 const char *rvalue, in config_parse_search_domains() argument 189 assert(rvalue); in config_parse_search_domains() 192 if (isempty(rvalue)) in config_parse_search_domains() 197 r = manager_parse_search_domains_and_warn(m, rvalue); in config_parse_search_domains() 200 "Failed to parse search domains string '%s', ignoring.", rvalue); in config_parse_search_domains() [all …]
|
/systemd-251/src/test/ |
D | test-conf-parser.c | 14 static void test_config_parse_path_one(const char *rvalue, const char *expected) { in test_config_parse_path_one() argument 17 …assert_se(config_parse_path("unit", "filename", 1, "section", 1, "lvalue", 0, rvalue, &path, NULL)… in test_config_parse_path_one() 21 static void test_config_parse_log_level_one(const char *rvalue, int expected) { in test_config_parse_log_level_one() argument 24 …assert_se(config_parse_log_level("unit", "filename", 1, "section", 1, "lvalue", 0, rvalue, &log_le… in test_config_parse_log_level_one() 28 static void test_config_parse_log_facility_one(const char *rvalue, int expected) { in test_config_parse_log_facility_one() argument 31 …fig_parse_log_facility("unit", "filename", 1, "section", 1, "lvalue", 0, rvalue, &log_facility, NU… in test_config_parse_log_facility_one() 35 static void test_config_parse_iec_size_one(const char *rvalue, size_t expected) { in test_config_parse_iec_size_one() argument 38 …assert_se(config_parse_iec_size("unit", "filename", 1, "section", 1, "lvalue", 0, rvalue, &iec_siz… in test_config_parse_iec_size_one() 42 static void test_config_parse_si_uint64_one(const char *rvalue, uint64_t expected) { in test_config_parse_si_uint64_one() argument 45 …assert_se(config_parse_si_uint64("unit", "filename", 1, "section", 1, "lvalue", 0, rvalue, &si_uin… in test_config_parse_si_uint64_one() [all …]
|
/systemd-251/src/network/netdev/ |
D | wireguard.c | 461 const char *rvalue, in config_parse_wireguard_listen_port() argument 468 assert(rvalue); in config_parse_wireguard_listen_port() 471 if (isempty(rvalue) || streq(rvalue, "auto")) { in config_parse_wireguard_listen_port() 476 r = parse_ip_port(rvalue, s); in config_parse_wireguard_listen_port() 479 "Invalid port specification, ignoring assignment: %s", rvalue); in config_parse_wireguard_listen_port() 487 const char *rvalue, in wireguard_decode_key_and_warn() argument 498 assert(rvalue); in wireguard_decode_key_and_warn() 503 if (isempty(rvalue)) { in wireguard_decode_key_and_warn() 511 r = unbase64mem_full(rvalue, strlen(rvalue), true, &key, &len); in wireguard_decode_key_and_warn() 538 const char *rvalue, in config_parse_wireguard_private_key() argument [all …]
|
D | geneve.c | 109 const char *rvalue, in config_parse_geneve_vni() argument 119 assert(rvalue); in config_parse_geneve_vni() 122 r = safe_atou32(rvalue, &f); in config_parse_geneve_vni() 124 … log_syntax(unit, LOG_WARNING, filename, line, r, "Failed to parse Geneve VNI '%s'.", rvalue); in config_parse_geneve_vni() 129 … log_syntax(unit, LOG_WARNING, filename, line, 0, "Geneve VNI out is of range '%s'.", rvalue); in config_parse_geneve_vni() 146 const char *rvalue, in config_parse_geneve_address() argument 156 assert(rvalue); in config_parse_geneve_address() 159 r = in_addr_from_string_auto(rvalue, &f, &buffer); in config_parse_geneve_address() 161 …ING, filename, line, r, "geneve '%s' address is invalid, ignoring assignment: %s", lvalue, rvalue); in config_parse_geneve_address() 167 …lename, line, 0, "geneve invalid multicast '%s' address, ignoring assignment: %s", lvalue, rvalue); in config_parse_geneve_address() [all …]
|
D | l2tp-tunnel.c | 481 const char *rvalue, in config_parse_l2tp_tunnel_local_address() argument 488 const char *p = rvalue; in config_parse_l2tp_tunnel_local_address() 494 assert(rvalue); in config_parse_l2tp_tunnel_local_address() 497 if (isempty(rvalue)) { in config_parse_l2tp_tunnel_local_address() 514 … "Invalid L2TP Tunnel address specified in %s=, ignoring assignment: %s", lvalue, rvalue); in config_parse_l2tp_tunnel_local_address() 521 … "Invalid interface name specified in %s=, ignoring assignment: %s", lvalue, rvalue); in config_parse_l2tp_tunnel_local_address() 530 type = l2tp_local_address_type_from_string(rvalue); in config_parse_l2tp_tunnel_local_address() 543 r = in_addr_from_string_auto(rvalue, &f, &a); in config_parse_l2tp_tunnel_local_address() 546 … "Invalid L2TP Tunnel local address specified, ignoring assignment: %s", rvalue); in config_parse_l2tp_tunnel_local_address() 552 … "L2TP Tunnel local address cannot be null, ignoring assignment: %s", rvalue); in config_parse_l2tp_tunnel_local_address() [all …]
|
D | vxlan.c | 206 const char *rvalue, in config_parse_vxlan_address() argument 216 assert(rvalue); in config_parse_vxlan_address() 229 if (isempty(rvalue)) { in config_parse_vxlan_address() 238 t = netdev_local_address_type_from_string(rvalue); in config_parse_vxlan_address() 247 r = in_addr_from_string_auto(rvalue, &f, &buffer); in config_parse_vxlan_address() 250 "Failed to parse %s=, ignoring assignment: %s", lvalue, rvalue); in config_parse_vxlan_address() 259 … "%s= must be a multicast address, ignoring assignment: %s", lvalue, rvalue); in config_parse_vxlan_address() 265 … "%s= cannot be a multicast address, ignoring assignment: %s", lvalue, rvalue); in config_parse_vxlan_address() 286 const char *rvalue, in config_parse_port_range() argument 296 assert(rvalue); in config_parse_port_range() [all …]
|