resolve-host: support parsing numeric interface names
authorLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 21:46:24 +0000 (23:46 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 24 Aug 2015 21:46:24 +0000 (23:46 +0200)
commit3fa4999b5d29e6ee368ed2fd5d65928cfae9435e
tree5dcdbeef36db6c248adde42f89075497b9e15e69
parentd634711b261dc72bb48765e8574ba43d455e82ec
resolve-host: support parsing numeric interface names

If the user specifies an interface by its ifindex we should handle this
nicely. Hence let's try to parse the ifindex as a number before we try
to resolve it as an interface name.
src/resolve-host/resolve-host.c