Searched defs:scope (Results 1 - 25 of 32) sorted by relevance

12

/systemd/src/libsystemd/sd-netlink/
H A Dlocal-addresses.h29 unsigned char scope; member in struct:local_address
H A Drtnl-message.c71 int sd_rtnl_message_route_set_scope(sd_netlink_message *m, unsigned char scope) { argument
80 rtm->rtm_scope = scope;
144 int sd_rtnl_message_route_get_scope(sd_netlink_message *m, unsigned char *scope) { argument
150 assert_return(scope, -EINVAL);
154 *scope = rtm->rtm_scope;
455 int sd_rtnl_message_addr_set_scope(sd_netlink_message *m, unsigned char scope) { argument
464 ifa->ifa_scope = scope;
499 int sd_rtnl_message_addr_get_scope(sd_netlink_message *m, unsigned char *scope) { argument
505 assert_return(scope, -EINVAL);
509 *scope
[all...]
H A Dtest-netlink.c353 unsigned char scope, flags; local
361 assert_se(sd_rtnl_message_addr_get_scope(m, &scope) >= 0);
/systemd/src/network/
H A Dnetworkd-address.h43 unsigned char scope; member in struct:Address
64 int address_update(Address *address, unsigned char flags, unsigned char scope, struct ifa_cacheinfo *cinfo);
H A Dnetworkd-route.h36 unsigned char scope; member in struct:Route
64 int route_update(Route *route, union in_addr_union *src, unsigned char src_prefixlen, union in_addr_union *gw, union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol);
H A Dnetworkd-route.c39 route->scope = RT_SCOPE_UNIVERSE;
309 unsigned char scope,
320 route->scope = scope;
393 r = sd_rtnl_message_route_set_scope(req, route->scope);
395 return log_error_errno(r, "Could not set scope: %m");
490 r = sd_rtnl_message_route_set_scope(req, route->scope);
492 return log_error_errno(r, "Could not set scope: %m");
765 n->scope = RT_SCOPE_HOST;
767 n->scope
304 route_update(Route *route, union in_addr_union *src, unsigned char src_prefixlen, union in_addr_union *gw, union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol) argument
[all...]
H A Dnetworkd-address.c42 address->scope = RT_SCOPE_UNIVERSE;
213 address->scope < RT_SCOPE_LINK;
328 int address_update(Address *address, unsigned char flags, unsigned char scope, struct ifa_cacheinfo *cinfo) { argument
338 address->scope = scope;
483 na->scope = original->scope;
543 r = sd_rtnl_message_addr_set_scope(req, address->scope);
545 return log_error_errno(r, "Could not set scope: %m");
H A Dnetworkd-manager.c287 unsigned char protocol, scope, tos, table; local
420 r = sd_rtnl_message_route_get_scope(message, &scope);
422 log_link_warning_errno(link, r, "rtnl: received route with invalid scope, ignoring: %m");
455 route_update(route, &src, src_prefixlen, &gw, &prefsrc, scope, protocol);
479 unsigned char scope; local
538 r = sd_rtnl_message_addr_get_scope(message, &scope);
540 log_link_warning_errno(link, r, "rtnl: received address with invalid scope, ignoring: %m");
604 address_update(address, flags, scope, &cinfo);
/systemd/src/resolve/
H A Dresolved-dns-zone.h48 DnsScope *scope; member in struct:DnsZoneItem
H A Dresolved-mdns.c73 DnsScope *scope; local
80 scope = manager_find_scope(m, p);
81 if (!scope) {
82 log_warning("Got mDNS UDP packet on unknown scope. Ignoring.");
98 * and complete it. Also store the new information in scope's cache.
106 dns_scope_check_conflicts(scope, p);
118 t = dns_scope_find_transaction(scope, rr->key, false);
123 dns_cache_put(&scope->cache, NULL, DNS_PACKET_RCODE(p), p->answer, false, (uint32_t) -1, 0, p->family, &p->sender);
128 dns_scope_process_query(scope, NULL, p);
H A Dresolved-llmnr.c91 DnsScope *scope; local
98 scope = manager_find_scope(m, p);
99 if (!scope) {
100 log_warning("Got LLMNR UDP packet on unknown scope. Ignoring.");
107 dns_scope_check_conflicts(scope, p);
116 dns_scope_process_query(scope, NULL, p);
283 DnsScope *scope; local
287 scope = manager_find_scope(s->manager, s->read_packet);
288 if (!scope) {
289 log_warning("Got LLMNR TCP packet on unknown scope
[all...]
H A Dresolved-dns-query.h37 DnsScope *scope; member in struct:DnsQueryCandidate
H A Dresolved-link.h45 unsigned char flags, scope; member in struct:LinkAddress
H A Dresolved-dns-scope.c29 #include "resolved-dns-scope.h"
61 * we copy this only at scope creation time, and do
77 log_debug("New scope on link %s, protocol %s, family %s", l ? l->name : "*", dns_protocol_to_string(protocol), family == AF_UNSPEC ? "*" : af_to_name(family));
110 log_debug("Removing scope on link %s, protocol %s, family %s", s->link ? s->link->name : "*", dns_protocol_to_string(s->protocol), s->family == AF_UNSPEC ? "*" : af_to_name(s->family));
412 * this scope. Note that this accepts non-qualified hostnames,
486 assert_not_reached("Unknown scope protocol");
497 * this scope. Note that this call assumes as fully qualified
771 DnsTransaction *dns_scope_find_transaction(DnsScope *scope, DnsResourceKey *key, bool cache_ok) { argument
774 assert(scope);
779 t = hashmap_get(scope
842 DnsScope *scope = userdata; local
872 dns_scope_notify_conflict(DnsScope *scope, DnsResourceRecord *rr) argument
918 dns_scope_check_conflicts(DnsScope *scope, DnsPacket *p) argument
[all...]
H A Dresolved-dns-transaction.h61 #include "resolved-dns-scope.h"
64 DnsScope *scope; member in struct:DnsTransaction
H A Dresolved-manager.c451 DnsScope *scope; local
461 LIST_FOREACH(scopes, scope, m->dns_scopes)
462 dns_scope_dump(scope, f);
/systemd/src/libsystemd/sd-bus/
H A Dtest-bus-match.c77 static void test_match_scope(const char *match, enum bus_match_scope scope) { argument
82 assert_se(bus_match_get_scope(components, n_components) == scope);
/systemd/src/shared/
H A Dpath-lookup.c428 UnitFileScope scope,
431 assert(scope >= 0);
432 assert(scope < _UNIT_FILE_SCOPE_MAX);
437 scope == UNIT_FILE_SYSTEM ? MANAGER_SYSTEM : MANAGER_USER,
438 scope == UNIT_FILE_USER,
427 lookup_paths_init_from_scope(LookupPaths *paths, UnitFileScope scope, const char *root_dir) argument
/systemd/src/login/
H A Dlogind-session.h30 SESSION_OPENING, /* Session scope is being created */
33 SESSION_CLOSING, /* Logged out, but scope is still there */
90 char *scope; member in struct:Session
H A Dloginctl.c297 char *scope; member in struct:SessionStatusInfo
330 free(info->scope);
431 { "Scope", "s", NULL, offsetof(SessionStatusInfo, scope) },
533 if (i.scope) {
534 printf("\t Unit: %s\n", i.scope);
535 show_unit_cgroup(bus, "org.freedesktop.systemd1.Scope", i.scope, i.leader);
541 i.scope,
H A Dlogind-session.c129 if (s->scope) {
130 hashmap_remove(s->manager->session_units, s->scope);
131 free(s->scope);
203 if (s->scope)
204 fprintf(f, "SCOPE=%s\n", s->scope);
332 "SCOPE", &s->scope,
514 if (!s->scope) {
516 char *scope, *job = NULL; local
519 scope = strjoin("session-", s->id, ".scope", NUL
[all...]
/systemd/src/machine/
H A Dmachine.c361 char *scope, *description, *job = NULL; local
367 scope = strjoin("machine-", escaped, ".scope", NULL);
368 if (!scope)
373 r = manager_start_scope(m->manager, scope, m->leader, SPECIAL_MACHINE_SLICE, description, properties, error, &job);
375 log_error("Failed to start machine scope: %s", bus_error_message(error, r));
376 free(scope);
379 m->unit = scope;
445 log_error("Failed to stop machine scope: %s", bus_error_message(&error, r));
H A Dmachined-dbus.c1279 const char *scope,
1291 assert(scope);
1304 r = sd_bus_message_append(m, "ss", strempty(scope), "fail");
1277 manager_start_scope( Manager *manager, const char *scope, pid_t pid, const char *slice, const char *description, sd_bus_message *more_properties, sd_bus_error *error, char **job) argument
/systemd/src/bus-proxyd/
H A Dproxy.c328 const char *scope; local
330 r = sd_bus_get_scope(p->destination_bus, &scope);
332 return log_error_errno(r, "Couldn't determine bus scope: %m");
334 if (streq(scope, "system"))
341 else if (streq(scope, "user"))
349 return log_error("Unknown scope %s, don't know which policy to load. Refusing.", scope);
/systemd/src/basic/
H A Djson.c622 static int json_scoped_parse(JsonVariant **tokens, size_t *i, size_t n, JsonVariant *scope) { argument
623 bool arr = scope->type == JSON_VARIANT_ARRAY;
636 assert(scope);
730 scope->size = size;
731 scope->objects = items;
733 return scope->type;

Completed in 129 milliseconds

12