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
98f5519c
Commit
98f5519c
authored
Feb 01, 2011
by
Nicolas Dichtel
Committed by
Stephen Hemminger
Mar 02, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iproute2: add support of flag XFRM_STATE_ALIGN4
Signed-off-by:
Nicolas Dichtel
<
nicolas.dichtel@6wind.com
>
parent
d5b7420a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
ip/ipxfrm.c
ip/ipxfrm.c
+1
-0
ip/xfrm_state.c
ip/xfrm_state.c
+3
-1
No files found.
ip/ipxfrm.c
View file @
98f5519c
...
...
@@ -854,6 +854,7 @@ void xfrm_state_info_print(struct xfrm_usersa_info *xsinfo,
XFRM_FLAG_PRINT
(
fp
,
flags
,
XFRM_STATE_WILDRECV
,
"wildrecv"
);
XFRM_FLAG_PRINT
(
fp
,
flags
,
XFRM_STATE_ICMP
,
"icmp"
);
XFRM_FLAG_PRINT
(
fp
,
flags
,
XFRM_STATE_AF_UNSPEC
,
"af-unspec"
);
XFRM_FLAG_PRINT
(
fp
,
flags
,
XFRM_STATE_ALIGN4
,
"align4"
);
if
(
flags
)
fprintf
(
fp
,
"%x"
,
flags
);
}
...
...
ip/xfrm_state.c
View file @
98f5519c
...
...
@@ -84,7 +84,7 @@ static void usage(void)
//fprintf(stderr, "REQID - number(default=0)\n");
fprintf
(
stderr
,
"FLAG-LIST := [ FLAG-LIST ] FLAG
\n
"
);
fprintf
(
stderr
,
"FLAG := [ noecn | decap-dscp | nopmtudisc | wildrecv | icmp | af-unspec ]
\n
"
);
fprintf
(
stderr
,
"FLAG := [ noecn | decap-dscp | nopmtudisc | wildrecv | icmp | af-unspec
| align4
]
\n
"
);
fprintf
(
stderr
,
"ENCAP := ENCAP-TYPE SPORT DPORT OADDR
\n
"
);
fprintf
(
stderr
,
"ENCAP-TYPE := espinudp | espinudp-nonike
\n
"
);
...
...
@@ -216,6 +216,8 @@ static int xfrm_state_flag_parse(__u8 *flags, int *argcp, char ***argvp)
*
flags
|=
XFRM_STATE_ICMP
;
else
if
(
strcmp
(
*
argv
,
"af-unspec"
)
==
0
)
*
flags
|=
XFRM_STATE_AF_UNSPEC
;
else
if
(
strcmp
(
*
argv
,
"align4"
)
==
0
)
*
flags
|=
XFRM_STATE_ALIGN4
;
else
{
PREV_ARG
();
/* back track */
break
;
...
...
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