X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fll_map.c;fp=lib%2Fll_map.c;h=c1d61a9af9dea41cb72b8bd08a5fa4801f977ced;hb=7132284647c15ca30d942926bc506d6019d3b61c;hp=1acbf8f862ac19f62727b4e9e35cec870262fb4f;hpb=105da95218c9d30375efc43f9edd8ef32998fedb;p=iproute2.git diff --git a/lib/ll_map.c b/lib/ll_map.c index 1acbf8f..c1d61a9 100644 --- a/lib/ll_map.c +++ b/lib/ll_map.c @@ -17,12 +17,13 @@ #include #include #include -#include #include #include "libnetlink.h" #include "ll_map.h" +extern unsigned int if_nametoindex (const char *); + struct idxmap { struct idxmap * next; @@ -36,7 +37,7 @@ struct idxmap static struct idxmap *idxmap[16]; -int ll_remember_index(const struct sockaddr_nl *who, +int ll_remember_index(const struct sockaddr_nl *who, struct nlmsghdr *n, void *arg) { int h;