mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-24 21:34:08 +03:00
network: add brief comments about bound_to and bound_by list
This commit is contained in:
parent
899b0e5eec
commit
ad82f0c32b
@ -692,6 +692,9 @@ int link_handle_bound_to_list(Link *link) {
|
||||
|
||||
assert(link);
|
||||
|
||||
/* If at least one interface in bound_to_links has carrier, then make this interface up.
|
||||
* If all interfaces in bound_to_links do not, then make this interface down. */
|
||||
|
||||
if (hashmap_isempty(link->bound_to_links))
|
||||
return 0;
|
||||
|
||||
@ -718,6 +721,8 @@ static int link_handle_bound_by_list(Link *link) {
|
||||
|
||||
assert(link);
|
||||
|
||||
/* Update up or down state of interfaces which depend on this interface's carrier state. */
|
||||
|
||||
if (hashmap_isempty(link->bound_by_links))
|
||||
return 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user