6#ifndef __NETLINK_CLI_UTILS_H_
7#define __NETLINK_CLI_UTILS_H_
20#include <sys/socket.h>
21#include <sys/select.h>
23#include <netlink/netlink.h>
24#include <netlink/utils.h>
25#include <netlink/addr.h>
26#include <netlink/list.h>
27#include <netlink/route/rtnl.h>
28#include <netlink/route/link.h>
29#include <netlink/route/addr.h>
30#include <netlink/route/neighbour.h>
31#include <netlink/route/neightbl.h>
32#include <netlink/route/route.h>
33#include <netlink/route/rule.h>
34#include <netlink/route/qdisc.h>
35#include <netlink/route/class.h>
36#include <netlink/route/classifier.h>
37#include <netlink/route/cls/ematch.h>
38#include <netlink/fib_lookup/lookup.h>
39#include <netlink/fib_lookup/request.h>
40#include <netlink/genl/genl.h>
41#include <netlink/genl/ctrl.h>
42#include <netlink/genl/mngt.h>
43#include <netlink/netfilter/ct.h>
50#define __init __attribute__((constructor))
54#define __exit __attribute__((destructor))
58extern void nl_cli_print_version(
void)
59 __attribute__((noreturn));
61 __attribute__((noreturn));
62extern struct nl_addr * nl_cli_addr_parse(const
char *,
int);
63extern
int nl_cli_connect(struct nl_sock *,
int);
64extern struct nl_sock * nl_cli_alloc_socket(
void);
65extern
int nl_cli_parse_dumptype(const
char *);
66extern
int nl_cli_confirm(struct nl_object *,
69extern struct nl_cache *nl_cli_alloc_cache(struct nl_sock *, const
char *,
70 int (*ac)(struct nl_sock *, struct nl_cache **));
72extern struct nl_cache *nl_cli_alloc_cache_flags(struct nl_sock *, const
char *,
74 int (*ac)(struct nl_sock *, struct nl_cache **,
unsigned int));
76extern
void nl_cli_load_module(const
char *, const
char *);
void nl_cli_fatal(int, const char *,...) __attribute__((noreturn))
Print error message and quit application.
uint32_t nl_cli_parse_u32(const char *)
Parse a text based 32 bit unsigned integer argument.