summaryrefslogtreecommitdiffstats
path: root/net/ipv6/ah6.c
diff options
context:
space:
mode:
authorEldad Zack <eldad@fogrefinery.com>2012-05-17 06:00:25 +0000
committerDavid S. Miller <davem@davemloft.net>2012-05-17 15:49:51 -0400
commit1de5a71c3e6eae2fbf15e9a9e13a8fc269bb82bc (patch)
treeb28a39f932993a61855be0ffbd8844a7bddb645c /net/ipv6/ah6.c
parent048b899ce38c3e1db88cb4464547090ef28630f8 (diff)
downloadlinux-1de5a71c3e6eae2fbf15e9a9e13a8fc269bb82bc.tar.bz2
ipv6: correct the ipv6 option name - Pad0 to Pad1
The padding destination or hop-by-hop option is called Pad1 and not Pad0. See RFC2460 (4.2) or the IANA ipv6-parameters registry: http://www.iana.org/assignments/ipv6-parameters/ipv6-parameters.xml Signed-off-by: Eldad Zack <eldad@fogrefinery.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ah6.c')
-rw-r--r--net/ipv6/ah6.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c
index 9aa3d010ac5d..5d32e7a93b26 100644
--- a/net/ipv6/ah6.c
+++ b/net/ipv6/ah6.c
@@ -127,7 +127,7 @@ static int zero_out_mutable_opts(struct ipv6_opt_hdr *opthdr)
switch (opt[off]) {
- case IPV6_TLV_PAD0:
+ case IPV6_TLV_PAD1:
optlen = 1;
break;
default:
@@ -171,7 +171,7 @@ static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *des
switch (opt[off]) {
- case IPV6_TLV_PAD0:
+ case IPV6_TLV_PAD1:
optlen = 1;
break;
default: