]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: introduce netlink_message_{read,append}_hw_addr
authorTimo Rothenpieler <timo@rothenpieler.org>
Mon, 26 Oct 2020 15:22:13 +0000 (16:22 +0100)
committerTimo Rothenpieler <timo@rothenpieler.org>
Wed, 28 Oct 2020 13:44:43 +0000 (14:44 +0100)
commit4fc8a29a7e06debb65f4e2651a03804beb41f781
tree86209a9c7d55c72cbd7d08f4e3cb874c53277ba8
parent48625dc437589d328de09887d1ebc360233f5acf
sd-netlink: introduce netlink_message_{read,append}_hw_addr

Hardware addresses come in various shapes and sizes, these new functions
and accomapying data structures account for that instead of hard-coding
a hardware address to the 6 bytes of an ethernet MAC.
src/basic/ether-addr-util.c
src/basic/ether-addr-util.h
src/libsystemd/sd-netlink/netlink-message.c
src/libsystemd/sd-netlink/netlink-util.h