udev-builtin-net_id: make names_mac() self-contained
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 27 Sep 2022 06:41:20 +0000 (15:41 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 29 Jul 2023 13:14:23 +0000 (22:14 +0900)
commit1ec6c448c50bd11a2a1677ec55ee87f3ac3eb1ce
tree94a508e5cbda903d8e830f60899526cf7c87cc1c
parent01455a0723087dabbe913c312673e600f5f1bd88
udev-builtin-net_id: make names_mac() self-contained

The MAC address is only used by names_mac() and ieee_oui(). Let's parse
it in names_mac() and drop it from LinkInfo.

No functional changes, just refactoring.
src/udev/udev-builtin-net_id.c