git://git.onelab.eu
/
iproute2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Checkign in new iproute2
[iproute2.git]
/
lib
/
ll_map.c
diff --git
a/lib/ll_map.c
b/lib/ll_map.c
index
1acbf8f
..
c1d61a9
100644
(file)
--- a/
lib/ll_map.c
+++ b/
lib/ll_map.c
@@
-17,12
+17,13
@@
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <netinet/in.h>
-#include <net/if.h>
#include <string.h>
#include "libnetlink.h"
#include "ll_map.h"
#include <string.h>
#include "libnetlink.h"
#include "ll_map.h"
+extern unsigned int if_nametoindex (const char *);
+
struct idxmap
{
struct idxmap * next;
struct idxmap
{
struct idxmap * next;
@@
-36,7
+37,7
@@
struct idxmap
static struct idxmap *idxmap[16];
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;
struct nlmsghdr *n, void *arg)
{
int h;