Fix compile errors when linking against libnl-genl
This commit is contained in:
parent
ab578b9ca0
commit
ff05f2ffc3
5 changed files with 11 additions and 10 deletions
|
@ -95,15 +95,6 @@ struct nl_cache_mngr
|
|||
|
||||
struct nl_parser_param;
|
||||
|
||||
struct genl_info
|
||||
{
|
||||
struct sockaddr_nl * who;
|
||||
struct nlmsghdr * nlh;
|
||||
struct genlmsghdr * genlhdr;
|
||||
void * userhdr;
|
||||
struct nlattr ** attrs;
|
||||
};
|
||||
|
||||
#define LOOSE_COMPARISON 1
|
||||
|
||||
#define NL_OBJ_MARK 1
|
||||
|
|
|
@ -22,6 +22,15 @@ extern "C" {
|
|||
|
||||
struct nl_cache_ops;
|
||||
|
||||
struct genl_info
|
||||
{
|
||||
struct sockaddr_nl * who;
|
||||
struct nlmsghdr * nlh;
|
||||
struct genlmsghdr * genlhdr;
|
||||
void * userhdr;
|
||||
struct nlattr ** attrs;
|
||||
};
|
||||
|
||||
/**
|
||||
* @ingroup genl_mngt
|
||||
* Generic Netlink Command
|
||||
|
|
|
@ -10,6 +10,7 @@
|
|||
*/
|
||||
|
||||
#include "utils.h"
|
||||
#include <netlink-local.h>
|
||||
|
||||
static void print_usage(void)
|
||||
{
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
#include "utils.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdarg.h>
|
||||
|
||||
uint32_t parse_u32(const char *arg)
|
||||
{
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
|
||||
#include <netlink-local.h>
|
||||
#include <netlink/netlink.h>
|
||||
#include <netlink/utils.h>
|
||||
#include <netlink/addr.h>
|
||||
|
|
Loading…
Add table
Reference in a new issue