summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Herz <andi@geekosphere.org>2015-07-16 15:54:19 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-07-20 17:32:51 +0200
commitc1ea18e0a4eda0dc0372fe87e246f0a5a8e50210 (patch)
treeb8e5d2c32ebb9a6f630f7e85b1a5a8a0258dc128
parent195e47b911918a6ee28cca80f8023a24ca3b598b (diff)
extension: libip6t_ipv6header: fix wrong headername in ipv6header for protocols
In the --help output and manpage for ipv6header the name for upper layer protocol headers was "proto", while in the code itself it's "prot" for the short form. Fixed by changing manpage and help output. Signed-off-by: Andreas Herz <andi@geekosphere.org> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r--extensions/libip6t_ipv6header.c2
-rw-r--r--extensions/libip6t_ipv6header.man4
2 files changed, 3 insertions, 3 deletions
diff --git a/extensions/libip6t_ipv6header.c b/extensions/libip6t_ipv6header.c
index 00d5d5b4..6f03087b 100644
--- a/extensions/libip6t_ipv6header.c
+++ b/extensions/libip6t_ipv6header.c
@@ -127,7 +127,7 @@ static void ipv6header_help(void)
printf(
"ipv6header match options:\n"
"[!] --header headers Type of header to match, by name\n"
-" names: hop,dst,route,frag,auth,esp,none,proto\n"
+" names: hop,dst,route,frag,auth,esp,none,prot\n"
" long names: hop-by-hop,ipv6-opts,ipv6-route,\n"
" ipv6-frag,ah,esp,ipv6-nonxt,protocol\n"
" numbers: 0,60,43,44,51,50,59\n"
diff --git a/extensions/libip6t_ipv6header.man b/extensions/libip6t_ipv6header.man
index a9988614..807d9abc 100644
--- a/extensions/libip6t_ipv6header.man
+++ b/extensions/libip6t_ipv6header.man
@@ -31,7 +31,7 @@ Encapsulating Security Payload header
No Next header which matches 59 in the 'Next Header field' of IPv6 header or
any IPv6 extension headers
.TP
-\fBproto\fP
+\fBprot\fP
which matches any upper layer protocol header. A protocol name from
/etc/protocols and numeric value also allowed. The number 255 is equivalent to
-\fBproto\fP.
+\fBprot\fP.