summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-01-20 11:54:29 (GMT)
committerThomas Haller <thaller@redhat.com>2017-01-20 11:54:29 (GMT)
commit6593e209f5b18f536b3d1756a1e0345e058e4da9 (patch)
tree7b4ee54832fe4e6ae68ad4960739cacc6140718e /include
parent6c7f42150034b9e1d8d9d7defc37a72f717ec36a (diff)
parentd13d6e244dab5784f12fb9a0fc9727c2f1d509fd (diff)
downloadlibnl-6593e209f5b18f536b3d1756a1e0345e058e4da9.zip
libnl-6593e209f5b18f536b3d1756a1e0345e058e4da9.tar.gz
libnl-6593e209f5b18f536b3d1756a1e0345e058e4da9.tar.bz2
all: merge branch 'tklauser-missing-prototypes'
https://github.com/thom311/libnl/pull/125
Diffstat (limited to 'include')
-rw-r--r--include/netlink/fib_lookup/lookup.h7
-rw-r--r--include/netlink/idiag/req.h4
-rw-r--r--include/netlink/netfilter/exp.h3
-rw-r--r--include/netlink/netfilter/queue_msg.h2
-rw-r--r--include/netlink/route/link/ipip.h3
-rw-r--r--include/netlink/route/link/ipvti.h10
-rw-r--r--include/netlink/route/link/sit.h4
-rw-r--r--include/netlink/route/link/sriov.h1
-rw-r--r--include/netlink/route/qdisc/red.h3
-rw-r--r--include/netlink/xfrm/sa.h4
10 files changed, 33 insertions, 8 deletions
diff --git a/include/netlink/fib_lookup/lookup.h b/include/netlink/fib_lookup/lookup.h
index 8bf27b8..b3c7b5f 100644
--- a/include/netlink/fib_lookup/lookup.h
+++ b/include/netlink/fib_lookup/lookup.h
@@ -35,6 +35,13 @@ extern int flnl_lookup(struct nl_sock *,
struct flnl_request *,
struct nl_cache *);
+extern int flnl_result_get_table_id(struct flnl_result *res);
+extern int flnl_result_get_prefixlen(struct flnl_result *res);
+extern int flnl_result_get_nexthop_sel(struct flnl_result *res);
+extern int flnl_result_get_type(struct flnl_result *res);
+extern int flnl_result_get_scope(struct flnl_result *res);
+extern int flnl_result_get_error(struct flnl_result *res);
+
#ifdef __cplusplus
}
#endif
diff --git a/include/netlink/idiag/req.h b/include/netlink/idiag/req.h
index 3c9f8ac..b63a4ce 100644
--- a/include/netlink/idiag/req.h
+++ b/include/netlink/idiag/req.h
@@ -43,6 +43,10 @@ extern int idiagnl_req_set_src(struct idiagnl_req *,
extern struct nl_addr * idiagnl_req_get_dst(const struct idiagnl_req *);
extern int idiagnl_req_set_dst(struct idiagnl_req *,
struct nl_addr *);
+
+extern int idiagnl_req_parse(struct nlmsghdr *nlh,
+ struct idiagnl_req **result);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */
diff --git a/include/netlink/netfilter/exp.h b/include/netlink/netfilter/exp.h
index 4e95014..736af24 100644
--- a/include/netlink/netfilter/exp.h
+++ b/include/netlink/netfilter/exp.h
@@ -82,7 +82,10 @@ extern uint16_t nfnl_exp_get_zone(const struct nfnl_exp *);
extern void nfnl_exp_set_flags(struct nfnl_exp *, uint32_t);
extern int nfnl_exp_test_flags(const struct nfnl_exp *);
+extern void nfnl_exp_unset_flags(struct nfnl_exp *exp, uint32_t flags);
extern uint32_t nfnl_exp_get_flags(const struct nfnl_exp *);
+extern char * nfnl_exp_flags2str(int flags, char *buf, size_t len);
+int nfnl_exp_str2flags(const char *name);
extern void nfnl_exp_set_class(struct nfnl_exp *, uint32_t);
extern int nfnl_exp_test_class(const struct nfnl_exp *);
diff --git a/include/netlink/netfilter/queue_msg.h b/include/netlink/netfilter/queue_msg.h
index 9befee7..86f4b86 100644
--- a/include/netlink/netfilter/queue_msg.h
+++ b/include/netlink/netfilter/queue_msg.h
@@ -93,6 +93,8 @@ extern unsigned int nfnl_queue_msg_get_verdict(const struct nfnl_queue_msg *);
extern struct nl_msg * nfnl_queue_msg_build_verdict(const struct nfnl_queue_msg *);
extern int nfnl_queue_msg_send_verdict(struct nl_sock *,
const struct nfnl_queue_msg *);
+
+extern struct nl_msg * nfnl_queue_msg_build_verdict_batch(const struct nfnl_queue_msg *msg);
extern int nfnl_queue_msg_send_verdict_batch(struct nl_sock *,
const struct nfnl_queue_msg *);
extern int nfnl_queue_msg_send_verdict_payload(struct nl_sock *,
diff --git a/include/netlink/route/link/ipip.h b/include/netlink/route/link/ipip.h
index ccadb87..a7f5158 100644
--- a/include/netlink/route/link/ipip.h
+++ b/include/netlink/route/link/ipip.h
@@ -18,10 +18,11 @@
#ifdef __cplusplus
extern "C" {
#endif
-
extern struct rtnl_link *rtnl_link_ipip_alloc(void);
extern int rtnl_link_ipip_add(struct nl_sock *sk, const char *name);
+ extern int rtnl_link_is_ipip(struct rtnl_link *link);
+
extern uint32_t rtnl_link_ipip_get_link(struct rtnl_link *link);
extern int rtnl_link_ipip_set_link(struct rtnl_link *link, uint32_t index);
diff --git a/include/netlink/route/link/ipvti.h b/include/netlink/route/link/ipvti.h
index a3e7bba..c97e57f 100644
--- a/include/netlink/route/link/ipvti.h
+++ b/include/netlink/route/link/ipvti.h
@@ -21,20 +21,22 @@ extern "C" {
extern struct rtnl_link *rtnl_link_ipvti_alloc(void);
extern int rtnl_link_ipvti_add(struct nl_sock *sk, const char *name);
+ extern int rtnl_link_is_ipvti(struct rtnl_link *link);
+
extern int rtnl_link_ipvti_set_link(struct rtnl_link *link, uint32_t index);
extern uint32_t rtnl_link_ipvti_get_link(struct rtnl_link *link);
extern int rtnl_link_ipvti_set_ikey(struct rtnl_link *link, uint32_t ikey);
- extern uint32_t rtnl_link_get_ikey(struct rtnl_link *link);
+ extern uint32_t rtnl_link_ipvti_get_ikey(struct rtnl_link *link);
extern int rtnl_link_ipvti_set_okey(struct rtnl_link *link, uint32_t okey);
- extern uint32_t rtnl_link_get_okey(struct rtnl_link *link);
+ extern uint32_t rtnl_link_ipvti_get_okey(struct rtnl_link *link);
extern int rtnl_link_ipvti_set_local(struct rtnl_link *link, uint32_t addr);
- extern uint32_t rtnl_link_get_local(struct rtnl_link *link);
+ extern uint32_t rtnl_link_ipvti_get_local(struct rtnl_link *link);
extern int rtnl_link_ipvti_set_remote(struct rtnl_link *link, uint32_t addr);
- extern uint32_t rtnl_link_get_remote(struct rtnl_link *link);
+ extern uint32_t rtnl_link_ipvti_get_remote(struct rtnl_link *link);
#ifdef __cplusplus
}
diff --git a/include/netlink/route/link/sit.h b/include/netlink/route/link/sit.h
index 62e01ed..d6f5851 100644
--- a/include/netlink/route/link/sit.h
+++ b/include/netlink/route/link/sit.h
@@ -22,11 +22,13 @@ extern "C" {
extern struct rtnl_link *rtnl_link_sit_alloc(void);
extern int rtnl_link_sit_add(struct nl_sock *sk, const char *name);
+ extern int rtnl_link_is_sit(struct rtnl_link *link);
+
extern int rtnl_link_sit_set_link(struct rtnl_link *link, uint32_t index);
extern uint32_t rtnl_link_sit_get_link(struct rtnl_link *link);
extern int rtnl_link_sit_set_local(struct rtnl_link *link, uint32_t addr);
- extern uint32_t rtnl_link_get_sit_local(struct rtnl_link *link);
+ extern uint32_t rtnl_link_sit_get_local(struct rtnl_link *link);
extern int rtnl_link_sit_set_remote(struct rtnl_link *link, uint32_t addr);
extern uint32_t rtnl_link_sit_get_remote(struct rtnl_link *link);
diff --git a/include/netlink/route/link/sriov.h b/include/netlink/route/link/sriov.h
index c6963a8..3f7cacf 100644
--- a/include/netlink/route/link/sriov.h
+++ b/include/netlink/route/link/sriov.h
@@ -126,6 +126,7 @@ extern int rtnl_link_vf_get_vlans(struct rtnl_link_vf *, nl_vf_vlans_t **);
extern void rtnl_link_vf_set_vlans(struct rtnl_link_vf *, nl_vf_vlans_t *);
extern int rtnl_link_vf_vlan_alloc(nl_vf_vlans_t **, int);
+extern void rtnl_link_vf_vlan_free(nl_vf_vlans_t *vf_vlans);
extern void rtnl_link_vf_vlan_put(nl_vf_vlans_t *);
/* Utility functions */
diff --git a/include/netlink/route/qdisc/red.h b/include/netlink/route/qdisc/red.h
index a4e8642..accb8d9 100644
--- a/include/netlink/route/qdisc/red.h
+++ b/include/netlink/route/qdisc/red.h
@@ -14,4 +14,7 @@
#include <netlink/netlink.h>
+extern void rtnl_red_set_limit(struct rtnl_qdisc *qdisc, int limit);
+extern int rtnl_red_get_limit(struct rtnl_qdisc *qdisc);
+
#endif
diff --git a/include/netlink/xfrm/sa.h b/include/netlink/xfrm/sa.h
index 9209ab0..7362c36 100644
--- a/include/netlink/xfrm/sa.h
+++ b/include/netlink/xfrm/sa.h
@@ -141,8 +141,8 @@ extern int xfrmnl_sa_set_coaddr (struct xfrmnl_sa*, struct
extern int xfrmnl_sa_get_mark (struct xfrmnl_sa*, unsigned int*, unsigned int*);
extern int xfrmnl_sa_set_mark (struct xfrmnl_sa*, unsigned int, unsigned int);
-extern int xfrmnl_sa_get_sec_ctx (struct xfrmnl_sa*, unsigned int, unsigned int,
- unsigned int, unsigned int, char*);
+extern int xfrmnl_sa_get_sec_ctx (struct xfrmnl_sa*, unsigned int*, unsigned int*,
+ unsigned int*, unsigned int*, char*);
extern int xfrmnl_sa_set_sec_ctx (struct xfrmnl_sa*, unsigned int, unsigned int,
unsigned int, unsigned int, const char*);