diff options
-rw-r--r-- | sbin/setkey/setkey.8 | 3 | ||||
-rw-r--r-- | sbin/setkey/token.l | 1 | ||||
-rw-r--r-- | usr.sbin/setkey/setkey.8 | 3 | ||||
-rw-r--r-- | usr.sbin/setkey/token.l | 1 |
4 files changed, 8 insertions, 0 deletions
diff --git a/sbin/setkey/setkey.8 b/sbin/setkey/setkey.8 index 3bfcada..7921800 100644 --- a/sbin/setkey/setkey.8 +++ b/sbin/setkey/setkey.8 @@ -366,6 +366,9 @@ They must be in numeric form. .It Ar upperspec Upper-layer protocol to be used. Currently +.Li icmp , +.Li icmp6 , +.Li ip4 , .Li tcp , .Li udp and diff --git a/sbin/setkey/token.l b/sbin/setkey/token.l index 8916fdd..c2eaad5 100644 --- a/sbin/setkey/token.l +++ b/sbin/setkey/token.l @@ -200,6 +200,7 @@ nocyclic-seq { PREPROC; return(NOCYCLICSEQ); } /* upper layer protocols */ icmp { PREPROC; yylval.num = IPPROTO_ICMP; return(UP_PROTO); } icmp6 { PREPROC; yylval.num = IPPROTO_ICMPV6; return(UP_PROTO); } +ip4 { PREPROC; yylval.num = IPPROTO_IPV4; return(UP_PROTO); } tcp { PREPROC; yylval.num = IPPROTO_TCP; return(UP_PROTO); } udp { PREPROC; yylval.num = IPPROTO_UDP; return(UP_PROTO); } diff --git a/usr.sbin/setkey/setkey.8 b/usr.sbin/setkey/setkey.8 index 3bfcada..7921800 100644 --- a/usr.sbin/setkey/setkey.8 +++ b/usr.sbin/setkey/setkey.8 @@ -366,6 +366,9 @@ They must be in numeric form. .It Ar upperspec Upper-layer protocol to be used. Currently +.Li icmp , +.Li icmp6 , +.Li ip4 , .Li tcp , .Li udp and diff --git a/usr.sbin/setkey/token.l b/usr.sbin/setkey/token.l index 8916fdd..c2eaad5 100644 --- a/usr.sbin/setkey/token.l +++ b/usr.sbin/setkey/token.l @@ -200,6 +200,7 @@ nocyclic-seq { PREPROC; return(NOCYCLICSEQ); } /* upper layer protocols */ icmp { PREPROC; yylval.num = IPPROTO_ICMP; return(UP_PROTO); } icmp6 { PREPROC; yylval.num = IPPROTO_ICMPV6; return(UP_PROTO); } +ip4 { PREPROC; yylval.num = IPPROTO_IPV4; return(UP_PROTO); } tcp { PREPROC; yylval.num = IPPROTO_TCP; return(UP_PROTO); } udp { PREPROC; yylval.num = IPPROTO_UDP; return(UP_PROTO); } |