34#ifndef NETLINK_XFRM_SEL_H_
35#define NETLINK_XFRM_SEL_H_
37#include <netlink/netlink.h>
38#include <netlink/cache.h>
39#include <netlink/addr.h>
40#include <linux/xfrm.h>
53extern struct xfrmnl_sel* xfrmnl_sel_get(
struct xfrmnl_sel*);
54extern void xfrmnl_sel_put(
struct xfrmnl_sel*);
57extern void xfrmnl_sel_dump(
struct xfrmnl_sel*,
struct nl_dump_params *);
60extern struct nl_addr* xfrmnl_sel_get_daddr (
struct xfrmnl_sel*);
61extern int xfrmnl_sel_set_daddr (
struct xfrmnl_sel*,
struct nl_addr*);
63extern struct nl_addr* xfrmnl_sel_get_saddr (
struct xfrmnl_sel*);
64extern int xfrmnl_sel_set_saddr (
struct xfrmnl_sel*,
struct nl_addr*);
66extern int xfrmnl_sel_get_dport (
struct xfrmnl_sel*);
67extern int xfrmnl_sel_set_dport (
struct xfrmnl_sel*,
unsigned int);
69extern int xfrmnl_sel_get_dportmask (
struct xfrmnl_sel*);
70extern int xfrmnl_sel_set_dportmask (
struct xfrmnl_sel*,
unsigned int);
72extern int xfrmnl_sel_get_sport (
struct xfrmnl_sel*);
73extern int xfrmnl_sel_set_sport (
struct xfrmnl_sel*,
unsigned int);
75extern int xfrmnl_sel_get_sportmask (
struct xfrmnl_sel*);
76extern int xfrmnl_sel_set_sportmask (
struct xfrmnl_sel*,
unsigned int);
78extern int xfrmnl_sel_get_family (
struct xfrmnl_sel*);
79extern int xfrmnl_sel_set_family (
struct xfrmnl_sel*,
unsigned int);
81extern int xfrmnl_sel_get_prefixlen_d (
struct xfrmnl_sel*);
82extern int xfrmnl_sel_set_prefixlen_d (
struct xfrmnl_sel*,
unsigned int);
84extern int xfrmnl_sel_get_prefixlen_s (
struct xfrmnl_sel*);
85extern int xfrmnl_sel_set_prefixlen_s (
struct xfrmnl_sel*,
unsigned int);
87extern int xfrmnl_sel_get_proto (
struct xfrmnl_sel*);
88extern int xfrmnl_sel_set_proto (
struct xfrmnl_sel*,
unsigned int);
90extern int xfrmnl_sel_get_ifindex (
struct xfrmnl_sel*);
91extern int xfrmnl_sel_set_ifindex (
struct xfrmnl_sel*,
unsigned int);
93extern int xfrmnl_sel_get_userid (
struct xfrmnl_sel*);
94extern int xfrmnl_sel_set_userid (
struct xfrmnl_sel*,
unsigned int);
int xfrmnl_sel_shared(struct xfrmnl_sel *)
Check whether an selector object is shared.
int xfrmnl_sel_cmp(struct xfrmnl_sel *, struct xfrmnl_sel *)
Compares two selector objects.
struct xfrmnl_sel * xfrmnl_sel_alloc(void)
Allocate new selector object.
struct xfrmnl_sel * xfrmnl_sel_clone(struct xfrmnl_sel *)
Clone existing selector object.