34#ifndef NETLINK_XFRM_LTIME_H_
35#define NETLINK_XFRM_LTIME_H_
37#include <netlink/netlink.h>
38#include <netlink/cache.h>
39#include <netlink/addr.h>
40#include <linux/xfrm.h>
46struct xfrmnl_ltime_cfg;
53extern struct xfrmnl_ltime_cfg* xfrmnl_ltime_cfg_get(
struct xfrmnl_ltime_cfg*);
54extern void xfrmnl_ltime_cfg_put(
struct xfrmnl_ltime_cfg*);
59extern unsigned long long xfrmnl_ltime_cfg_get_soft_bytelimit (
struct xfrmnl_ltime_cfg*);
60extern int xfrmnl_ltime_cfg_set_soft_bytelimit (
struct xfrmnl_ltime_cfg*,
unsigned long long);
62extern unsigned long long xfrmnl_ltime_cfg_get_hard_bytelimit (
struct xfrmnl_ltime_cfg*);
63extern int xfrmnl_ltime_cfg_set_hard_bytelimit (
struct xfrmnl_ltime_cfg*,
unsigned long long);
65extern unsigned long long xfrmnl_ltime_cfg_get_soft_packetlimit (
struct xfrmnl_ltime_cfg*);
66extern int xfrmnl_ltime_cfg_set_soft_packetlimit (
struct xfrmnl_ltime_cfg*,
unsigned long long);
68extern unsigned long long xfrmnl_ltime_cfg_get_hard_packetlimit (
struct xfrmnl_ltime_cfg*);
69extern int xfrmnl_ltime_cfg_set_hard_packetlimit (
struct xfrmnl_ltime_cfg*,
unsigned long long);
71extern unsigned long long xfrmnl_ltime_cfg_get_soft_addexpires (
struct xfrmnl_ltime_cfg*);
72extern int xfrmnl_ltime_cfg_set_soft_addexpires (
struct xfrmnl_ltime_cfg*,
unsigned long long);
74extern unsigned long long xfrmnl_ltime_cfg_get_hard_addexpires (
struct xfrmnl_ltime_cfg*);
75extern int xfrmnl_ltime_cfg_set_hard_addexpires (
struct xfrmnl_ltime_cfg*,
unsigned long long);
77extern unsigned long long xfrmnl_ltime_cfg_get_soft_useexpires (
struct xfrmnl_ltime_cfg*);
78extern int xfrmnl_ltime_cfg_set_soft_useexpires (
struct xfrmnl_ltime_cfg*,
unsigned long long);
80extern unsigned long long xfrmnl_ltime_cfg_get_hard_useexpires (
struct xfrmnl_ltime_cfg*);
81extern int xfrmnl_ltime_cfg_set_hard_useexpires (
struct xfrmnl_ltime_cfg*,
unsigned long long);
struct xfrmnl_ltime_cfg * xfrmnl_ltime_cfg_alloc(void)
Allocate new lifetime config object.
int xfrmnl_ltime_cfg_cmp(struct xfrmnl_ltime_cfg *, struct xfrmnl_ltime_cfg *)
Compares two lifetime config objects.
struct xfrmnl_ltime_cfg * xfrmnl_ltime_cfg_clone(struct xfrmnl_ltime_cfg *)
Clone existing lifetime config object.
int xfrmnl_ltime_cfg_shared(struct xfrmnl_ltime_cfg *)
Check whether an lifetime config object is shared.