summaryrefslogtreecommitdiffstats
path: root/sbin/setkey
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2008-01-12 20:00:23 +0000
committermaxim <maxim@FreeBSD.org>2008-01-12 20:00:23 +0000
commitd501f78b50faa0424ef028686c983923b07a88aa (patch)
tree0a7f9e5681e85868e90e410525940b1902daecce /sbin/setkey
parent25ee59b7773e520ed1e335ed772224d12e333d9e (diff)
downloadFreeBSD-src-d501f78b50faa0424ef028686c983923b07a88aa.zip
FreeBSD-src-d501f78b50faa0424ef028686c983923b07a88aa.tar.gz
o Allow setkey(8) to recognize esp as a protocoal name for spdadd.
PR: bin/107392 Submitted by: Eugene Grosbein MFC after: 1 month
Diffstat (limited to 'sbin/setkey')
-rw-r--r--sbin/setkey/parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/setkey/parse.y b/sbin/setkey/parse.y
index 8123a75..c551c35 100644
--- a/sbin/setkey/parse.y
+++ b/sbin/setkey/parse.y
@@ -683,6 +683,7 @@ upper_spec
: DECSTRING { $$ = $1; }
| ANY { $$ = IPSEC_ULPROTO_ANY; }
| PR_TCP { $$ = IPPROTO_TCP; }
+ | PR_ESP { $$ = IPPROTO_ESP; }
| STRING
{
struct protoent *ent;
OpenPOWER on IntegriCloud