Home
last modified time | relevance | path

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

/systemd-251/src/systemd/
Dsd-ndisc.h56 typedef struct sd_ndisc_router sd_ndisc_router; typedef
66 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);
[all …]
/systemd-251/src/libsystemd-network/
Dndisc-router.c19 DEFINE_PUBLIC_TRIVIAL_REF_UNREF_FUNC(sd_ndisc_router, sd_ndisc_router, mfree);
21 sd_ndisc_router *ndisc_router_new(size_t raw_size) { in ndisc_router_new()
22 sd_ndisc_router *rt; in ndisc_router_new()
24 if (raw_size > SIZE_MAX - ALIGN(sizeof(sd_ndisc_router))) in ndisc_router_new()
27 rt = malloc0(ALIGN(sizeof(sd_ndisc_router)) + raw_size); 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()
48 int sd_ndisc_router_get_timestamp(sd_ndisc_router *rt, clockid_t clock, uint64_t *ret) { in sd_ndisc_router_get_timestamp()
61 int sd_ndisc_router_get_raw(sd_ndisc_router *rt, const void **ret, size_t *size) { in sd_ndisc_router_get_raw()
72 int ndisc_router_parse(sd_ndisc *nd, sd_ndisc_router *rt) { in ndisc_router_parse()
216 int sd_ndisc_router_get_hop_limit(sd_ndisc_router *rt, uint8_t *ret) { in sd_ndisc_router_get_hop_limit()
[all …]
Dndisc-router.h12 struct sd_ndisc_router { struct
32 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()
40 static inline uint8_t NDISC_ROUTER_OPTION_TYPE(const sd_ndisc_router *rt) { in NDISC_ROUTER_OPTION_TYPE()
43 static inline size_t NDISC_ROUTER_OPTION_LENGTH(const sd_ndisc_router *rt) { in NDISC_ROUTER_OPTION_LENGTH()
47 sd_ndisc_router *ndisc_router_new(size_t raw_size);
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()
182 static int ndisc_handle_datagram(sd_ndisc *nd, sd_ndisc_router *rt) { in ndisc_handle_datagram()
202 _cleanup_(sd_ndisc_router_unrefp) sd_ndisc_router *rt = NULL; in ndisc_recv()
Dtest-ndisc-rs.c31 static void router_dump(sd_ndisc_router *rt) { in router_dump()
226 static void test_callback(sd_ndisc *nd, sd_ndisc_event_t event, sd_ndisc_router *rt, void *userdata… in test_callback()
/systemd-251/src/network/
Dnetworkd-ndisc.c222 static int ndisc_request_route(Route *in, Link *link, sd_ndisc_router *rt) { in ndisc_request_route()
270 static int ndisc_request_address(Address *in, Link *link, sd_ndisc_router *rt) { in ndisc_request_address()
296 static int ndisc_router_process_default(Link *link, sd_ndisc_router *rt) { in ndisc_router_process_default()
398 static int ndisc_router_process_autonomous_prefix(Link *link, sd_ndisc_router *rt) { in ndisc_router_process_autonomous_prefix()
492 static int ndisc_router_process_onlink_prefix(Link *link, sd_ndisc_router *rt) { in ndisc_router_process_onlink_prefix()
541 static int ndisc_router_process_prefix(Link *link, sd_ndisc_router *rt) { in ndisc_router_process_prefix()
591 static int ndisc_router_process_route(Link *link, sd_ndisc_router *rt) { in ndisc_router_process_route()
693 static int ndisc_router_process_rdnss(Link *link, sd_ndisc_router *rt) { in ndisc_router_process_rdnss()
787 static int ndisc_router_process_dnssl(Link *link, sd_ndisc_router *rt) { in ndisc_router_process_dnssl()
864 static int ndisc_router_process_options(Link *link, sd_ndisc_router *rt) { in ndisc_router_process_options()
[all …]