diff options
author | Eldad Zack <eldad@fogrefinery.com> | 2012-05-17 08:00:25 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-05-17 21:49:51 +0200 |
commit | 1de5a71c3e6eae2fbf15e9a9e13a8fc269bb82bc (patch) | |
tree | b28a39f932993a61855be0ffbd8844a7bddb645c /net/ipv6/mip6.c | |
parent | etherdevice: fix comments (diff) | |
download | linux-1de5a71c3e6eae2fbf15e9a9e13a8fc269bb82bc.tar.xz linux-1de5a71c3e6eae2fbf15e9a9e13a8fc269bb82bc.zip |
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/mip6.c')
-rw-r--r-- | net/ipv6/mip6.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c index 2e02f7c9d76d..5b087c31d87b 100644 --- a/net/ipv6/mip6.c +++ b/net/ipv6/mip6.c @@ -46,7 +46,7 @@ static inline void *mip6_padn(__u8 *data, __u8 padlen) if (!data) return NULL; if (padlen == 1) { - data[0] = IPV6_TLV_PAD0; + data[0] = IPV6_TLV_PAD1; } else if (padlen > 1) { data[0] = IPV6_TLV_PADN; data[1] = padlen - 2; |