aboutsummaryrefslogtreecommitdiffstats
path: root/ip/xfrm_state.c
diff options
context:
space:
mode:
authorNicolas Dichtel <nicolas.dichtel@6wind.com>2011-02-01 07:29:54 -0500
committerStephen Hemminger <stephen.hemminger@vyatta.com>2011-03-02 11:50:09 -0800
commit98f5519cd9db9d1ca58c49af27698101c8fff373 (patch)
tree8d9685aea0566e1a8e9cfabda55b52be7fe0cdd3 /ip/xfrm_state.c
parentd5b7420a269e6e220e00cfbd69546d157fac1332 (diff)
downloadplatform_external_iproute2-98f5519cd9db9d1ca58c49af27698101c8fff373.tar.gz
platform_external_iproute2-98f5519cd9db9d1ca58c49af27698101c8fff373.tar.bz2
platform_external_iproute2-98f5519cd9db9d1ca58c49af27698101c8fff373.zip
iproute2: add support of flag XFRM_STATE_ALIGN4
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Diffstat (limited to 'ip/xfrm_state.c')
-rw-r--r--ip/xfrm_state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ip/xfrm_state.c b/ip/xfrm_state.c
index 94acd66b..8ac3437a 100644
--- a/ip/xfrm_state.c
+++ b/ip/xfrm_state.c
@@ -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;