Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iproute2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
iproute2
Commits
48f1ef9f
Commit
48f1ef9f
authored
Mar 22, 2005
by
linux-ipv6.org!nakam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
split printing state/policy info function for xfrm common use.
(Logical change 1.175)
parent
56e8ad38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
ip/xfrm.h
ip/xfrm.h
+16
-1
No files found.
ip/xfrm.h
View file @
48f1ef9f
...
...
@@ -39,6 +39,10 @@
#define XFRMP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_userpolicy_info))))
#define XFRMP_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct xfrm_userpoilcy_info))
#define XFRMACQ_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_acquire))))
#define XFRMEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_expire))))
#define XFRMPEXP_RTA(x) ((struct rtattr*)(((char*)(x)) + NLMSG_ALIGN(sizeof(struct xfrm_user_polexpire))))
#define XFRM_FLAG_PRINT(fp, flags, f, s) \
do { \
if (flags & f) { \
...
...
@@ -84,8 +88,13 @@ struct xfrm_filter {
extern
struct
xfrm_filter
filter
;
int
xfrm_state_print
(
const
struct
sockaddr_nl
*
who
,
struct
nlmsghdr
*
n
,
void
*
arg
);
int
xfrm_policy_print
(
const
struct
sockaddr_nl
*
who
,
struct
nlmsghdr
*
n
,
void
*
arg
);
int
do_xfrm_state
(
int
argc
,
char
**
argv
);
int
do_xfrm_policy
(
int
argc
,
char
**
argv
);
int
do_xfrm_monitor
(
int
argc
,
char
**
argv
);
int
xfrm_addr_match
(
xfrm_address_t
*
x1
,
xfrm_address_t
*
x2
,
int
bits
);
int
xfrm_xfrmproto_getbyname
(
char
*
name
);
...
...
@@ -98,7 +107,7 @@ const char *strxf_share(__u8 share);
const
char
*
strxf_proto
(
__u8
proto
);
void
xfrm_id_info_print
(
xfrm_address_t
*
saddr
,
struct
xfrm_id
*
id
,
__u8
mode
,
__u32
reqid
,
__u16
family
,
int
force_spi
,
FILE
*
fp
,
const
char
*
prefix
);
FILE
*
fp
,
const
char
*
prefix
,
const
char
*
title
);
void
xfrm_stats_print
(
struct
xfrm_stats
*
s
,
FILE
*
fp
,
const
char
*
prefix
);
void
xfrm_lifetime_print
(
struct
xfrm_lifetime_cfg
*
cfg
,
struct
xfrm_lifetime_cur
*
cur
,
...
...
@@ -107,6 +116,12 @@ void xfrm_selector_print(struct xfrm_selector *sel, __u16 family,
FILE
*
fp
,
const
char
*
prefix
);
void
xfrm_xfrma_print
(
struct
rtattr
*
tb
[],
__u16
family
,
FILE
*
fp
,
const
char
*
prefix
);
void
xfrm_state_info_print
(
struct
xfrm_usersa_info
*
xsinfo
,
struct
rtattr
*
tb
[],
FILE
*
fp
,
const
char
*
prefix
,
const
char
*
title
);
void
xfrm_policy_info_print
(
struct
xfrm_userpolicy_info
*
xpinfo
,
struct
rtattr
*
tb
[],
FILE
*
fp
,
const
char
*
prefix
,
const
char
*
title
);
int
xfrm_id_parse
(
xfrm_address_t
*
saddr
,
struct
xfrm_id
*
id
,
__u16
*
family
,
int
loose
,
int
*
argcp
,
char
***
argvp
);
int
xfrm_mode_parse
(
__u8
*
mode
,
int
*
argcp
,
char
***
argvp
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment