]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-netlink: unify network interface name getter and resolvers
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 27 Jan 2024 17:49:22 +0000 (02:49 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 30 Jan 2024 11:37:04 +0000 (20:37 +0900)
commit4e235561d68b030a03669cb48237a1afa24f0a86
treed4fdc5b1e3d5f3f62bcebd16da35d1a11fc97fa6
parent9561f242821c3838b98f1e679354cb08068ddc30
sd-netlink: unify network interface name getter and resolvers

This makes rtnl_resolve_interface() always check the existence of the
resolved interface, which previously did not when a decimal formatted
ifindex is provided, e.g. "1" or "42".
src/libsystemd/sd-netlink/netlink-util.c
src/libsystemd/sd-netlink/netlink-util.h
src/test/test-socket-netlink.c