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@
This commit is contained in:
Bruce M Simpson 2004-03-31 18:38:02 +00:00
parent 21f48b73b0
commit 1ba19fe8ce
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=127684
2 changed files with 2 additions and 0 deletions

View File

@ -672,6 +672,7 @@ portstr
upper_spec
: DECSTRING { $$ = $1; }
| ANY { $$ = IPSEC_ULPROTO_ANY; }
| PR_TCP { $$ = IPPROTO_TCP; }
| STRING
{
struct protoent *ent;

View File

@ -672,6 +672,7 @@ portstr
upper_spec
: DECSTRING { $$ = $1; }
| ANY { $$ = IPSEC_ULPROTO_ANY; }
| PR_TCP { $$ = IPPROTO_TCP; }
| STRING
{
struct protoent *ent;