Hi Sven
diff --git a/debug.c b/debug.c index 3db3ed9..c61970e 100644 --- a/debug.c +++ b/debug.c @@ -23,10 +23,12 @@ #include <unistd.h> #include <stdio.h> #include <stdlib.h> +#include <errno.h>
#include "debug.h" #include "debugfs.h" #include "functions.h" +#include "netlink.h" #include "sys.h"
...
diff --git a/functions.c b/functions.c index be8f8b0..27c14d6 100644 --- a/functions.c +++ b/functions.c @@ -52,6 +52,7 @@ #include "sys.h" #include "debug.h" #include "debugfs.h" +#include "netlink.h"
...
diff --git a/netlink.c b/netlink.c new file mode 100644 index 0000000..951b842 --- /dev/null +++ b/netlink.c @@ -0,0 +1,1024 @@ +#include <stdio.h> +#include <string.h> +#include <unistd.h> +#include <errno.h> +#include <net/if.h> +#include <netlink/netlink.h> +#include <netlink/genl/genl.h> +#include <netlink/genl/ctrl.h> +#include <netinet/in.h> +#include <arpa/inet.h>
+#include "bat-hosts.h" +#include "batman_adv.h" +#include "netlink.h" +#include "functions.h" +#include "main.h"
Where is netlink.h missing?
Thanks Andrew