mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
parent
d5bc4e6898
commit
6333aa9d46
@ -580,11 +580,11 @@ _public_ int sd_radv_add_prefix(sd_radv *ra, sd_radv_prefix *p, int dynamic) {
|
||||
|
||||
/* If RAs have already been sent, send an RA immediately to announce the newly-added prefix */
|
||||
if (ra->ra_sent > 0) {
|
||||
r = radv_send(ra, NULL, ra->lifetime);
|
||||
if (r < 0)
|
||||
log_radv_errno(r, "Unable to send Router Advertisement for added prefix: %m");
|
||||
else
|
||||
log_radv("Sent Router Advertisement for added prefix");
|
||||
r = radv_send(ra, NULL, ra->lifetime);
|
||||
if (r < 0)
|
||||
log_radv_errno(r, "Unable to send Router Advertisement for added prefix: %m");
|
||||
else
|
||||
log_radv("Sent Router Advertisement for added prefix");
|
||||
}
|
||||
|
||||
update:
|
||||
@ -696,11 +696,11 @@ _public_ int sd_radv_add_route_prefix(sd_radv *ra, sd_radv_route_prefix *p, int
|
||||
|
||||
/* If RAs have already been sent, send an RA immediately to announce the newly-added route prefix */
|
||||
if (ra->ra_sent > 0) {
|
||||
r = radv_send(ra, NULL, ra->lifetime);
|
||||
if (r < 0)
|
||||
log_radv_errno(r, "Unable to send Router Advertisement for added route prefix: %m");
|
||||
else
|
||||
log_radv("Sent Router Advertisement for added route prefix");
|
||||
r = radv_send(ra, NULL, ra->lifetime);
|
||||
if (r < 0)
|
||||
log_radv_errno(r, "Unable to send Router Advertisement for added route prefix: %m");
|
||||
else
|
||||
log_radv("Sent Router Advertisement for added route prefix");
|
||||
}
|
||||
|
||||
update:
|
||||
|
Loading…
Reference in New Issue
Block a user