Commit 34e099e2 authored by Stephen Hemminger's avatar Stephen Hemminger

SA and SP in IPSec BEET mode.

Patch which allows for setting SA and SP also for
new IPSec mode BEET, beside tunnel and transport, according to the latest
changes in the kernel you can find at the following link:
Signed-off-by: default avatarDiego Beltrami <diego.beltrami@gmail.com>
Signed-off-by: default avatarMiika Komu <miika@iki.fi>
Signed-off-by: default avatarStephen Hemminger <shemminger@osdl.org>
parent a18fa24a
......@@ -282,6 +282,9 @@ void xfrm_id_info_print(xfrm_address_t *saddr, struct xfrm_id *id,
case 1:
fprintf(fp, "tunnel");
break;
case 4:
fprintf(fp, "beet");
break;
default:
fprintf(fp, "%u", mode);
break;
......@@ -857,6 +860,8 @@ int xfrm_mode_parse(__u8 *mode, int *argcp, char ***argvp)
*mode = 0;
else if (matches(*argv, "tunnel") == 0)
*mode = 1;
else if (matches(*argv, "beet") == 0)
*mode = 4;
else
invarg("\"MODE\" is invalid", *argv);
......
......@@ -87,7 +87,7 @@ static void usage(void)
fprintf(stderr, "%s", strxf_xfrmproto(IPPROTO_COMP));
fprintf(stderr, " ]\n");
fprintf(stderr, "MODE := [ transport | tunnel ](default=transport)\n");
fprintf(stderr, "MODE := [ transport | tunnel | beet ](default=transport)\n");
//fprintf(stderr, "REQID - number(default=0)\n");
fprintf(stderr, "LEVEL := [ required | use ](default=required)\n");
......
......@@ -75,7 +75,7 @@ static void usage(void)
//fprintf(stderr, "SPI - security parameter index(default=0)\n");
fprintf(stderr, "MODE := [ transport | tunnel ](default=transport)\n");
fprintf(stderr, "MODE := [ transport | tunnel | beet ](default=transport)\n");
//fprintf(stderr, "REQID - number(default=0)\n");
fprintf(stderr, "FLAG-LIST := [ FLAG-LIST ] FLAG\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment