File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed
Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 2525#include "radv-internal.h"
2626#include "web-util.h"
2727
28+ bool link_dhcp6_with_address_enabled (Link * link ) {
29+ if (!link_dhcp6_enabled (link ))
30+ return false;
31+
32+ return link -> network -> dhcp6_use_address ;
33+ }
34+
2835bool link_dhcp6_pd_is_enabled (Link * link ) {
2936 assert (link );
3037
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ typedef struct DHCP6DelegatedPrefix {
2626DHCP6DelegatedPrefix * dhcp6_pd_free (DHCP6DelegatedPrefix * p );
2727DEFINE_TRIVIAL_CLEANUP_FUNC (DHCP6DelegatedPrefix * , dhcp6_pd_free );
2828
29+ bool link_dhcp6_with_address_enabled (Link * link );
2930bool link_dhcp6_pd_is_enabled (Link * link );
3031int dhcp6_pd_remove (Link * link );
3132int dhcp6_configure (Link * link );
Original file line number Diff line number Diff line change @@ -779,7 +779,7 @@ void link_check_ready(Link *link) {
779779 break ;
780780 }
781781
782- if ((link_dhcp4_enabled (link ) || link_dhcp6_enabled (link ) || link_ipv4ll_enabled (link )) &&
782+ if ((link_dhcp4_enabled (link ) || link_dhcp6_with_address_enabled (link ) || link_ipv4ll_enabled (link )) &&
783783 !link -> dhcp_address && set_isempty (link -> dhcp6_addresses ) && !has_ndisc_address &&
784784 !link -> ipv4ll_address_configured )
785785 /* When DHCP[46] or IPv4LL is enabled, at least one address is acquired by them. */
You can’t perform that action at this time.
0 commit comments