summaryrefslogtreecommitdiffstats
path: root/sbin/setkey
diff options
context:
space:
mode:
authorbms <bms@FreeBSD.org>2004-03-31 18:38:02 +0000
committerbms <bms@FreeBSD.org>2004-03-31 18:38:02 +0000
commit37a21337e379b493f7450c4e6f5f9cc4b04cb282 (patch)
tree68323ae8d2179c5791666378ef6571412a4c0c2f /sbin/setkey
parent6de0b418b8fcaddda2f6105cb92bff5b6717bc97 (diff)
downloadFreeBSD-src-37a21337e379b493f7450c4e6f5f9cc4b04cb282.zip
FreeBSD-src-37a21337e379b493f7450c4e6f5f9cc4b04cb282.tar.gz
Fix regression in setkey whereby parser would fail to recognise tcp as
both a security protocol and an upper level protocol for encapsulation. PR: bin/63616 Submitted by: ume@
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 bc944a8..0693a96 100644
--- a/sbin/setkey/parse.y
+++ b/sbin/setkey/parse.y
@@ -672,6 +672,7 @@ portstr
upper_spec
: DECSTRING { $$ = $1; }
| ANY { $$ = IPSEC_ULPROTO_ANY; }
+ | PR_TCP { $$ = IPPROTO_TCP; }
| STRING
{
struct protoent *ent;
OpenPOWER on IntegriCloud