mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-27 12:03:45 +08:00
Only send interfaces which have a reason.
This commit is contained in:
parent
a93e79c68f
commit
be6184ce72
4
script.c
4
script.c
@ -551,7 +551,7 @@ send_interface(int fd, const struct interface *ifp)
|
||||
if (send_interface1(fd, ifp, reason) == -1)
|
||||
retval = -1;
|
||||
#ifdef INET
|
||||
if (d)
|
||||
if (d && d->reason)
|
||||
if (send_interface1(fd, ifp, d->reason) == -1)
|
||||
retval = -1;
|
||||
#endif
|
||||
@ -561,7 +561,7 @@ send_interface(int fd, const struct interface *ifp)
|
||||
if (send_interface1(fd, ifp, "ROUTERADVERT") == -1)
|
||||
retval = -1;
|
||||
}
|
||||
if (D6_STATE_RUNNING(ifp)) {
|
||||
if (D6_STATE_RUNNING(ifp) && d6->reason) {
|
||||
if (send_interface1(fd, ifp, d6->reason) == -1)
|
||||
retval = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user