mirror of
https://github.com/systemd/systemd.git
synced 2025-01-20 18:04:03 +03:00
radv: introduce sd_radv_is_running()
This commit is contained in:
parent
0ef1adf512
commit
96fe813c42
@ -77,6 +77,12 @@ _public_ sd_event *sd_radv_get_event(sd_radv *ra) {
|
||||
return ra->event;
|
||||
}
|
||||
|
||||
_public_ int sd_radv_is_running(sd_radv *ra) {
|
||||
assert_return(ra, false);
|
||||
|
||||
return ra->state != SD_RADV_STATE_IDLE;
|
||||
}
|
||||
|
||||
static void radv_reset(sd_radv *ra) {
|
||||
assert(ra);
|
||||
|
||||
|
@ -50,6 +50,7 @@ sd_event *sd_radv_get_event(sd_radv *ra);
|
||||
|
||||
int sd_radv_start(sd_radv *ra);
|
||||
int sd_radv_stop(sd_radv *ra);
|
||||
int sd_radv_is_running(sd_radv *ra);
|
||||
|
||||
int sd_radv_set_ifindex(sd_radv *ra, int interface_index);
|
||||
int sd_radv_set_mac(sd_radv *ra, const struct ether_addr *mac_addr);
|
||||
|
Loading…
x
Reference in New Issue
Block a user