projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
system-linux: remove an unnecessary libnl-tiny hack
[project/netifd.git]
/
system-linux.c
diff --git
a/system-linux.c
b/system-linux.c
index
d7030fb
..
f2f9660
100644
(file)
--- a/
system-linux.c
+++ b/
system-linux.c
@@
-10,6
+10,7
@@
#include <netlink/msg.h>
#include <netlink/attr.h>
#include <netlink/msg.h>
#include <netlink/attr.h>
+#include <netlink/socket.h>
#include <libubox/uloop.h>
#include "netifd.h"
#include <libubox/uloop.h>
#include "netifd.h"
@@
-58,11
+59,7
@@
int system_init(void)
nlmsg_free(m);
}
nlmsg_free(m);
}
-#ifdef NLA_PUT_DATA
rtnl_event.fd = nl_socket_get_fd(sock_rtnl_event);
rtnl_event.fd = nl_socket_get_fd(sock_rtnl_event);
-#else
- rtnl_event.fd = sock_rtnl_event->s_fd; // libnl-tiny hack...
-#endif
uloop_fd_add(&rtnl_event, ULOOP_READ | ULOOP_EDGE_TRIGGER);
}
uloop_fd_add(&rtnl_event, ULOOP_READ | ULOOP_EDGE_TRIGGER);
}