summaryrefslogtreecommitdiff
path: root/src/shared/netif-util.c
Commit message (Collapse)AuthorAgeFilesLines
* strv: declare iterator of FOREACH_STRING() in the loopZbigniew Jędrzejewski-Szmek2022-03-231-3/+4
| | | | | | | | | | | Same idea as 03677889f0ef42cdc534bf3b31265a054b20a354. No functional change intended. The type of the iterator is generally changed to be 'const char*' instead of 'char*'. Despite the type commonly used, modifying the string was not allowed. I adjusted the naming of some short variables for clarity and reduced the scope of some variable declarations in code that was being touched anyway.
* netif-util: introduce netif_has_carrier()Yu Watanabe2022-01-211-0/+15
|
* network,udev: do not adjust local assignment bit of specified MAC addressYu Watanabe2021-12-071-13/+10
| | | | | | | People often assigns the MAC address of the enslaved interface to e.g. bridge interface. So, the local assignment bit should not be adjusted. Fixes #21649.
* netif-util: update log messageYu Watanabe2021-11-261-2/+2
| | | | Follow-up for 37593b7c488f7b957936500158f200af16534c6b.
* netif-util: introduce net_verify_hardware_address()Yu Watanabe2021-11-251-0/+92
|
* netif-util: fix stack-use-after-scopeYu Watanabe2021-11-101-4/+2
| | | | | | Fixes a bug introduced by 0295b2fd1d97c68010c7528af13e2952886d52e0. Fixes #21292.
* netif-util: split net_get_unique_predictable_data() into twoYu Watanabe2021-11-091-6/+23
|
* netif-util: rename net_get_name_persistent() -> net_get_persistent_name()Yu Watanabe2021-11-091-3/+3
|
* netif-util: rename link_get_type_string() -> net_get_type_string()Yu Watanabe2021-11-091-1/+1
|
* netif-util: move several functions from network-util.[ch] to ↵Yu Watanabe2021-11-091-0/+86
shared/netif-util.[ch] These functions are not relevant to sd-network, and only used by networkd, networkctl, and udevd.