]> git.ipfire.org Git - thirdparty/systemd.git/commit
nss-myhostname: use LOOPBACK_IFINDEX instead of if_nametoindex("lo") 954/head
authorLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2015 11:11:04 +0000 (13:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Aug 2015 11:11:04 +0000 (13:11 +0200)
commitf43242886cae3daf0474134175707cbc02c05191
treee7daa375b02cc9408e6d53bfb21de9484488a380
parentc5974b33e7fa3b777e72181d0fc0d1d22fdab2cd
nss-myhostname: use LOOPBACK_IFINDEX instead of if_nametoindex("lo")

Given that we already hardocde the loopback ifindex, following the
kernel's own logic, we can replace the invocation of
if_nametoindex("lo") with LOOPBACK_IFINDEX.
src/nss-myhostname/nss-myhostname.c