]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/resolve/resolved-manager.c
resolved: simplify detection of packets from the loopback device
authorLennart Poettering <lennart@poettering.net>
Wed, 22 Oct 2014 14:52:38 +0000 (16:52 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 22 Oct 2014 14:52:38 +0000 (16:52 +0200)
commita5f035960006556beab51c42e6948985635e261a
treebee22c1c99904edcc348117d784b2352a018a4b3
parent91c40d86120f3bf033539a53c971d99f5dd70708
resolved: simplify detection of packets from the loopback device

We can simplify our code quite a bit if we explicitly check for the
ifindex being 1 on Linux as a loopback check. Apparently, this is
hardcoded on Linux on the kernel, and effectively exported to userspace
via rtnl and such, hence we should be able to rely on it.
src/resolve/resolved-dns-stream.c
src/resolve/resolved-manager.c
src/resolve/resolved-manager.h
src/shared/missing.h