Home
last modified time | relevance | path

Searched refs:rt (Results 1 – 25 of 26) sorted by relevance

12

/systemd-251/src/libsystemd-network/
Dndisc-router.c22 sd_ndisc_router *rt; in ndisc_router_new() local
27 rt = malloc0(ALIGN(sizeof(sd_ndisc_router)) + raw_size); in ndisc_router_new()
28 if (!rt) in ndisc_router_new()
31 rt->raw_size = raw_size; in ndisc_router_new()
32 rt->n_ref = 1; in ndisc_router_new()
34 return rt; in ndisc_router_new()
37 int sd_ndisc_router_get_address(sd_ndisc_router *rt, struct in6_addr *ret_addr) { in sd_ndisc_router_get_address() argument
38 assert_return(rt, -EINVAL); in sd_ndisc_router_get_address()
41 if (in6_addr_is_null(&rt->address)) in sd_ndisc_router_get_address()
44 *ret_addr = rt->address; in sd_ndisc_router_get_address()
[all …]
Dtest-ndisc-rs.c31 static void router_dump(sd_ndisc_router *rt) { in router_dump() argument
40 assert_se(rt); in router_dump()
43 assert_se(sd_ndisc_router_get_address(rt, &addr) == -ENODATA); in router_dump()
45 assert_se(sd_ndisc_router_get_timestamp(rt, CLOCK_REALTIME, &t) >= 0); in router_dump()
48 assert_se(sd_ndisc_router_get_timestamp(rt, CLOCK_MONOTONIC, &t) >= 0); in router_dump()
51 if (sd_ndisc_router_get_hop_limit(rt, &hop_limit) < 0) in router_dump()
56 assert_se(sd_ndisc_router_get_flags(rt, &flags) >= 0); in router_dump()
61 assert_se(sd_ndisc_router_get_preference(rt, &preference) >= 0); in router_dump()
66 assert_se(sd_ndisc_router_get_lifetime(rt, &lifetime) >= 0); in router_dump()
69 if (sd_ndisc_router_get_mtu(rt, &mtu) < 0) in router_dump()
[all …]
Dndisc-router.h32 static inline void* NDISC_ROUTER_RAW(const sd_ndisc_router *rt) { in NDISC_ROUTER_RAW() argument
33 return (uint8_t*) rt + ALIGN(sizeof(sd_ndisc_router)); in NDISC_ROUTER_RAW()
36 static inline void *NDISC_ROUTER_OPTION_DATA(const sd_ndisc_router *rt) { in NDISC_ROUTER_OPTION_DATA() argument
37 return ((uint8_t*) NDISC_ROUTER_RAW(rt)) + rt->rindex; in NDISC_ROUTER_OPTION_DATA()
40 static inline uint8_t NDISC_ROUTER_OPTION_TYPE(const sd_ndisc_router *rt) { in NDISC_ROUTER_OPTION_TYPE() argument
41 return ((uint8_t*) NDISC_ROUTER_OPTION_DATA(rt))[0]; in NDISC_ROUTER_OPTION_TYPE()
43 static inline size_t NDISC_ROUTER_OPTION_LENGTH(const sd_ndisc_router *rt) { in NDISC_ROUTER_OPTION_LENGTH() argument
44 return ((uint8_t*) NDISC_ROUTER_OPTION_DATA(rt))[1] * 8; in NDISC_ROUTER_OPTION_LENGTH()
48 int ndisc_router_parse(sd_ndisc *nd, sd_ndisc_router *rt);
Dsd-ndisc.c34 static void ndisc_callback(sd_ndisc *ndisc, sd_ndisc_event_t event, sd_ndisc_router *rt) { in ndisc_callback() argument
42 ndisc->callback(ndisc, event, rt, ndisc->userdata); in ndisc_callback()
182 static int ndisc_handle_datagram(sd_ndisc *nd, sd_ndisc_router *rt) { in ndisc_handle_datagram() argument
186 assert(rt); in ndisc_handle_datagram()
188 r = ndisc_router_parse(nd, rt); in ndisc_handle_datagram()
193rt->flags & ND_RA_FLAG_MANAGED ? "MANAGED" : rt->flags & ND_RA_FLAG_OTHER ? "OTHER" : "none", in ndisc_handle_datagram()
194rt->preference == SD_NDISC_PREFERENCE_HIGH ? "high" : rt->preference == SD_NDISC_PREFERENCE_LOW ? … in ndisc_handle_datagram()
195 rt->lifetime); in ndisc_handle_datagram()
197 ndisc_callback(nd, SD_NDISC_EVENT_ROUTER, rt); in ndisc_handle_datagram()
202 _cleanup_(sd_ndisc_router_unrefp) sd_ndisc_router *rt = NULL; in ndisc_recv()
[all …]
Dsd-radv.c226 LIST_FOREACH(prefix, rt, ra->route_prefixes) { in radv_send()
227rt->opt.lifetime = usec_to_be32_sec(MIN(usec_sub_unsigned(rt->valid_until, time_now), in radv_send()
228 rt->lifetime_usec)); in radv_send()
230 iov[msg.msg_iovlen++] = IOVEC_MAKE(&rt->opt, sizeof(rt->opt)); in radv_send()
/systemd-251/src/systemd/
Dsd-ndisc.h66 typedef void (*sd_ndisc_callback_t)(sd_ndisc *nd, sd_ndisc_event_t event, sd_ndisc_router *rt, void…
85 sd_ndisc_router *sd_ndisc_router_ref(sd_ndisc_router *rt);
86 sd_ndisc_router *sd_ndisc_router_unref(sd_ndisc_router *rt);
88 int sd_ndisc_router_get_address(sd_ndisc_router *rt, struct in6_addr *ret_addr);
89 int sd_ndisc_router_get_timestamp(sd_ndisc_router *rt, clockid_t clock, uint64_t *ret);
90 int sd_ndisc_router_get_raw(sd_ndisc_router *rt, const void **ret, size_t *size);
92 int sd_ndisc_router_get_hop_limit(sd_ndisc_router *rt, uint8_t *ret);
93 int sd_ndisc_router_get_flags(sd_ndisc_router *rt, uint64_t *ret_flags);
94 int sd_ndisc_router_get_preference(sd_ndisc_router *rt, unsigned *ret);
95 int sd_ndisc_router_get_lifetime(sd_ndisc_router *rt, uint16_t *ret_lifetime);
[all …]
/systemd-251/src/network/
Dnetworkd-ndisc.c222 static int ndisc_request_route(Route *in, Link *link, sd_ndisc_router *rt) { in ndisc_request_route() argument
230 assert(rt); in ndisc_request_route()
232 r = sd_ndisc_router_get_address(rt, &router); in ndisc_request_route()
270 static int ndisc_request_address(Address *in, Link *link, sd_ndisc_router *rt) { in ndisc_request_address() argument
278 assert(rt); in ndisc_request_address()
280 r = sd_ndisc_router_get_address(rt, &router); in ndisc_request_address()
296 static int ndisc_router_process_default(Link *link, sd_ndisc_router *rt) { in ndisc_router_process_default() argument
306 assert(rt); in ndisc_router_process_default()
312 r = sd_ndisc_router_get_lifetime(rt, &lifetime_sec); in ndisc_router_process_default()
319 r = sd_ndisc_router_get_timestamp(rt, CLOCK_BOOTTIME, &timestamp_usec); in ndisc_router_process_default()
[all …]
Dnetworkd-dhcp-common.c529 uint32_t rt; in config_parse_dhcp_or_ra_route_table() local
538 r = safe_atou32(rvalue, &rt); in config_parse_dhcp_or_ra_route_table()
547 network->dhcp_route_table = rt; in config_parse_dhcp_or_ra_route_table()
551 network->ipv6_accept_ra_route_table = rt; in config_parse_dhcp_or_ra_route_table()
Dnetworkd-dhcp4.c583 Route *rt; in dhcp4_request_semi_static_routes() local
594 HASHMAP_FOREACH(rt, link->network->routes_by_section) { in dhcp4_request_semi_static_routes()
597 if (!rt->gateway_from_dhcp_or_ra) in dhcp4_request_semi_static_routes()
600 if (rt->gw_family != AF_INET) in dhcp4_request_semi_static_routes()
607 r = route_dup(rt, &route); in dhcp4_request_semi_static_routes()
/systemd-251/src/core/
Dexecute.c6526 static ExecRuntime* exec_runtime_free(ExecRuntime *rt, bool destroy) { in exec_runtime_free() argument
6529 if (!rt) in exec_runtime_free()
6532 if (rt->manager) in exec_runtime_free()
6533 (void) hashmap_remove(rt->manager->exec_runtime_by_id, rt->id); in exec_runtime_free()
6537 if (destroy && rt->tmp_dir && !streq(rt->tmp_dir, RUN_SYSTEMD_EMPTY)) { in exec_runtime_free()
6538 log_debug("Spawning thread to nuke %s", rt->tmp_dir); in exec_runtime_free()
6540 r = asynchronous_job(remove_tmpdir_thread, rt->tmp_dir); in exec_runtime_free()
6542 log_warning_errno(r, "Failed to nuke %s: %m", rt->tmp_dir); in exec_runtime_free()
6544 rt->tmp_dir = NULL; in exec_runtime_free()
6547 if (destroy && rt->var_tmp_dir && !streq(rt->var_tmp_dir, RUN_SYSTEMD_EMPTY)) { in exec_runtime_free()
[all …]
Ddbus-manager.c1617 _cleanup_free_ char *ri = NULL, *rt = NULL; in method_switch_root() local
1693 rt = strdup(root); in method_switch_root()
1694 if (!rt) in method_switch_root()
1703 free_and_replace(m->switch_root, rt); in method_switch_root()
Dunit.c4715 ExecRuntime **rt; in unit_setup_exec_runtime() local
4724 rt = (ExecRuntime**) ((uint8_t*) u + offset); in unit_setup_exec_runtime()
4725 if (*rt) in unit_setup_exec_runtime()
4730 r = exec_runtime_acquire(u->manager, NULL, other->id, false, rt); in unit_setup_exec_runtime()
4735 return exec_runtime_acquire(u->manager, unit_get_exec_context(u), u->id, true, rt); in unit_setup_exec_runtime()
/systemd-251/src/test/
Dtest-time-util.c521 usec_t rt, mn, bt; in TEST() local
523 rt = now(CLOCK_REALTIME); in TEST()
529 …assert_similar(usec_shift_clock(rt + USEC_PER_HOUR, CLOCK_REALTIME, CLOCK_MONOTONIC), mn + USEC_PE… in TEST()
530 …assert_similar(usec_shift_clock(rt + 2*USEC_PER_HOUR, CLOCK_REALTIME, CLOCK_BOOTTIME), bt + 2*USEC… in TEST()
531 …assert_se(usec_shift_clock(rt + 3*USEC_PER_HOUR, CLOCK_REALTIME, CLOCK_REALTIME_ALARM) == rt + 3*U… in TEST()
533 …ec_shift_clock(mn + 4*USEC_PER_HOUR, CLOCK_MONOTONIC, CLOCK_REALTIME_ALARM), rt + 4*USEC_PER_HOUR); in TEST()
538 …sec_shift_clock(bt + 8*USEC_PER_HOUR, CLOCK_BOOTTIME, CLOCK_REALTIME_ALARM), rt + 8*USEC_PER_HOUR); in TEST()
542 …assert_similar(usec_shift_clock(rt - 30 * USEC_PER_SEC, CLOCK_REALTIME_ALARM, CLOCK_MONOTONIC), mn… in TEST()
543 …assert_similar(usec_shift_clock(rt - 50 * USEC_PER_SEC, CLOCK_REALTIME, CLOCK_BOOTTIME), bt - 50 *… in TEST()
Dtest-mountpoint-util.c206 int rf, rt, rdf, rdt, rlf, rlt, rl1f, rl1t; in TEST() local
213 rt = path_is_mount_point(file2, NULL, AT_SYMLINK_FOLLOW); in TEST()
227 assert_se(rt == 1); in TEST()
244 rt = path_is_mount_point(dir1, NULL, AT_SYMLINK_FOLLOW); in TEST()
256 assert_se(rt == 1); in TEST()
/systemd-251/src/login/
Dpam_systemd.c651 const char *rt) { in configure_runtime_directory() argument
657 assert(rt); in configure_runtime_directory()
659 if (!validate_runtime_directory(handle, rt, ur->uid)) in configure_runtime_directory()
662 r = pam_misc_setenv(handle, "XDG_RUNTIME_DIR", rt, 0); in configure_runtime_directory()
668 return export_legacy_dbus_address(handle, rt); in configure_runtime_directory()
727 char rt[STRLEN("/run/user/") + DECIMAL_STR_MAX(uid_t)]; in pam_sm_open_session() local
729 xsprintf(rt, "/run/user/"UID_FMT, ur->uid); in pam_sm_open_session()
730 r = configure_runtime_directory(handle, ur, rt); in pam_sm_open_session()
/systemd-251/src/resolve/
Dtest-resolved-stream.c342 _cleanup_free_ char *rt = NULL, *d = NULL; in try_isolate_network() local
349 assert_se(get_process_exe(0, &rt) >= 0); in try_isolate_network()
350 assert_se(path_extract_directory(rt, &d) >= 0); in try_isolate_network()
/systemd-251/catalog/
Dsystemd.hu.catalog.in25 A rendszernapló folyamat leállt, és bezárt minden jelenleg aktív naplófájlt.
41 Részletekért lásd a journald.conf(5) man oldalt.
58 írt ki.
Dsystemd.da.catalog.in112 Subject: Opstart af systemet er nu fuldført
/systemd-251/src/libsystemd/sd-journal/
Djournal-verify.c1134 uint64_t q, rt; in journal_file_verify() local
1138rt = f->fss_start_usec + le64toh(o->tag.epoch) * f->fss_interval_usec; in journal_file_verify()
1139 … if (entry_realtime_set && entry_realtime >= rt + f->fss_interval_usec) { in journal_file_verify()
1143 rt + f->fss_interval_usec); in journal_file_verify()
1192 last_tag_realtime = rt; in journal_file_verify()
Djournal-file.c2730 uint64_t rt; in test_object_realtime() local
2740 rt = le64toh(READ_NOW(o->entry.realtime)); in test_object_realtime()
2741 if (rt == needle) in test_object_realtime()
2743 else if (rt < needle) in test_object_realtime()
/systemd-251/src/shared/
Djson.c1114 JsonVariantType rt; in json_variant_has_type() local
1123 rt = json_variant_type(v); in json_variant_has_type()
1124 if (rt == type) in json_variant_has_type()
1142 return IN_SET(rt, JSON_VARIANT_INTEGER, JSON_VARIANT_UNSIGNED, JSON_VARIANT_REAL); in json_variant_has_type()
1145 if (rt == JSON_VARIANT_INTEGER && type == JSON_VARIANT_UNSIGNED) in json_variant_has_type()
1147 if (rt == JSON_VARIANT_UNSIGNED && type == JSON_VARIANT_INTEGER) in json_variant_has_type()
1151 if (rt == JSON_VARIANT_INTEGER && type == JSON_VARIANT_REAL) in json_variant_has_type()
1153 if (rt == JSON_VARIANT_UNSIGNED && type == JSON_VARIANT_REAL) in json_variant_has_type()
1159 if (rt == JSON_VARIANT_REAL && type == JSON_VARIANT_INTEGER) in json_variant_has_type()
1161 if (rt == JSON_VARIANT_REAL && type == JSON_VARIANT_UNSIGNED) in json_variant_has_type()
/systemd-251/po/
Dda.po603 msgstr "Log på den lokale vært"
607 msgstr "Der kræves godkendelse for at logge på den lokale vært."
619 msgstr "Anskaf en skal på den lokale vært"
623 msgstr "Der kræves godkendelse for at anskaffe en skal på den lokale vært."
637 msgstr "Anskaf en pseudo-TTY på den lokale vært"
642 "Der kræves godkendelse for at anskaffe en pseudo-TTY på den lokale vært."
/systemd-251/docs/
DTESTING_WITH_SANITIZERS.md55 runtime libraries, usually shipped in the `compiler-rt` package. As these libraries
/systemd-251/src/basic/
Dcgroup-util.c1047 _cleanup_free_ char *rt = NULL; in cg_shift_path() local
1058 r = cg_get_root_path(&rt); in cg_shift_path()
1062 root = rt; in cg_shift_path()
/systemd-251/test/fuzz/fuzz-journal-remote/
Dsample.txt153 MESSAGE=\xda\x80\xe0\xe5@\xa4\x94\xecL\xbd\xe4\xe5\xbd\xc8\xae\x8e\xa9k\xa4\rt\xf2\x17\xe3n!.\xe3\x…

12