mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
Merge pull request #12577 from yuwata/test-network-issue-12344
test-network: fix test_bond_operstate
This commit is contained in:
@@ -1637,7 +1637,8 @@ bool link_has_carrier(Link *link) {
|
||||
|
||||
if (link->kernel_operstate == IF_OPER_UNKNOWN)
|
||||
/* operstate may not be implemented, so fall back to flags */
|
||||
if ((link->flags & IFF_LOWER_UP) && !(link->flags & IFF_DORMANT))
|
||||
if (FLAGS_SET(link->flags, IFF_LOWER_UP | IFF_RUNNING) &&
|
||||
!FLAGS_SET(link->flags, IFF_DORMANT))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user