/systemd-251/src/libsystemd-network/ |
D | sd-ipv4acd.c | 80 #define log_ipv4acd_errno(acd, error, fmt, ...) \ argument 83 sd_ipv4acd, acd, \ 85 #define log_ipv4acd(acd, fmt, ...) \ argument 88 sd_ipv4acd, acd, \ 103 static void ipv4acd_set_state(sd_ipv4acd *acd, IPv4ACDState st, bool reset_counter) { in ipv4acd_set_state() argument 104 assert(acd); in ipv4acd_set_state() 107 if (st != acd->state) in ipv4acd_set_state() 108 … log_ipv4acd(acd, "%s -> %s", ipv4acd_state_to_string(acd->state), ipv4acd_state_to_string(st)); in ipv4acd_set_state() 110 if (st == acd->state && !reset_counter) in ipv4acd_set_state() 111 acd->n_iteration++; in ipv4acd_set_state() [all …]
|
D | sd-ipv4ll.c | 34 sd_ipv4acd *acd; member 66 static void ipv4ll_on_acd(sd_ipv4acd *acd, int event, void *userdata); 67 static int ipv4ll_check_mac(sd_ipv4acd *acd, const struct ether_addr *mac, void *userdata); 72 sd_ipv4acd_unref(ll->acd); in ipv4ll_free() 90 r = sd_ipv4acd_new(&ll->acd); in sd_ipv4ll_new() 94 r = sd_ipv4acd_set_callback(ll->acd, ipv4ll_on_acd, ll); in sd_ipv4ll_new() 98 r = sd_ipv4acd_set_check_mac_callback(ll->acd, ipv4ll_check_mac, ll); in sd_ipv4ll_new() 111 return sd_ipv4acd_stop(ll->acd); in sd_ipv4ll_stop() 119 return sd_ipv4acd_set_ifindex(ll->acd, ifindex); in sd_ipv4ll_set_ifindex() 126 return sd_ipv4acd_get_ifindex(ll->acd); in sd_ipv4ll_get_ifindex() [all …]
|
D | test-acd.c | 19 static void acd_handler(sd_ipv4acd *acd, int event, void *userdata) { in acd_handler() argument 20 assert_se(acd); in acd_handler() 38 sd_ipv4acd *acd; in client_run() local 40 assert_se(sd_ipv4acd_new(&acd) >= 0); in client_run() 41 assert_se(sd_ipv4acd_attach_event(acd, e, 0) >= 0); in client_run() 43 assert_se(sd_ipv4acd_set_ifindex(acd, ifindex) >= 0); in client_run() 44 assert_se(sd_ipv4acd_set_mac(acd, ha) >= 0); in client_run() 45 assert_se(sd_ipv4acd_set_address(acd, pa) >= 0); in client_run() 46 assert_se(sd_ipv4acd_set_callback(acd, acd_handler, NULL) >= 0); in client_run() 50 assert_se(sd_ipv4acd_start(acd, true) >= 0); in client_run() [all …]
|
D | meson.build | 87 [files('test-acd.c'),
|
/systemd-251/src/systemd/ |
D | sd-ipv4acd.h | 38 typedef void (*sd_ipv4acd_callback_t)(sd_ipv4acd *acd, int event, void *userdata); 39 typedef int (*sd_ipv4acd_check_mac_callback_t)(sd_ipv4acd *acd, const struct ether_addr *mac, void … 41 int sd_ipv4acd_detach_event(sd_ipv4acd *acd); 42 int sd_ipv4acd_attach_event(sd_ipv4acd *acd, sd_event *event, int64_t priority); 43 int sd_ipv4acd_get_address(sd_ipv4acd *acd, struct in_addr *address); 44 int sd_ipv4acd_set_callback(sd_ipv4acd *acd, sd_ipv4acd_callback_t cb, void *userdata); 45 int sd_ipv4acd_set_check_mac_callback(sd_ipv4acd *acd, sd_ipv4acd_check_mac_callback_t cb, void *us… 46 int sd_ipv4acd_set_mac(sd_ipv4acd *acd, const struct ether_addr *addr); 47 int sd_ipv4acd_set_ifindex(sd_ipv4acd *acd, int interface_index); 48 int sd_ipv4acd_get_ifindex(sd_ipv4acd *acd); [all …]
|
/systemd-251/src/network/ |
D | networkd-ipv4acd.c | 65 static void on_acd(sd_ipv4acd *acd, int event, void *userdata) { in on_acd() argument 70 assert(acd); in on_acd() 72 assert(address->acd == acd); in on_acd() 115 static int ipv4acd_check_mac(sd_ipv4acd *acd, const struct ether_addr *mac, void *userdata) { in ipv4acd_check_mac() argument 150 if (address->acd) { in ipv4acd_configure() 158 r = sd_ipv4acd_new(&address->acd); in ipv4acd_configure() 162 r = sd_ipv4acd_attach_event(address->acd, link->manager->event, 0); in ipv4acd_configure() 166 r = sd_ipv4acd_set_ifindex(address->acd, link->ifindex); in ipv4acd_configure() 170 r = sd_ipv4acd_set_mac(address->acd, &link->hw_addr.ether); in ipv4acd_configure() 174 r = sd_ipv4acd_set_address(address->acd, &address->in_addr.in); in ipv4acd_configure() [all …]
|
D | networkd-address.h | 60 sd_ipv4acd *acd; member
|
D | networkd-address.c | 136 sd_ipv4acd_unref(address->acd); in address_free() 401 dest->acd = NULL; in address_dup()
|
/systemd-251/hwdb.d/ |
D | usb.ids | 1671 0acd Sitecom Internal Multi Memory reader/writer MD-005 12908 0acd ID Tech 14220 3acd Mass Storage Device
|