Commit 1de5a71c3e6eae2fbf15e9a9e13a8fc269bb82bc
Committed by
David S. Miller
1 parent
048b899ce3
Exists in
smarc-l5.0.0_1.0.0-ga
and in
5 other branches
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>
Showing 7 changed files with 10 additions and 10 deletions Side-by-side Diff
include/linux/in6.h
net/bridge/br_multicast.c
... | ... | @@ -460,8 +460,8 @@ |
460 | 460 | hopopt[3] = 2; /* Length of RA Option */ |
461 | 461 | hopopt[4] = 0; /* Type = 0x0000 (MLD) */ |
462 | 462 | hopopt[5] = 0; |
463 | - hopopt[6] = IPV6_TLV_PAD0; /* Pad0 */ | |
464 | - hopopt[7] = IPV6_TLV_PAD0; /* Pad0 */ | |
463 | + hopopt[6] = IPV6_TLV_PAD1; /* Pad1 */ | |
464 | + hopopt[7] = IPV6_TLV_PAD1; /* Pad1 */ | |
465 | 465 | |
466 | 466 | skb_put(skb, sizeof(*ip6h) + 8); |
467 | 467 |
net/bridge/br_netfilter.c
net/ipv6/ah6.c
... | ... | @@ -127,7 +127,7 @@ |
127 | 127 | |
128 | 128 | switch (opt[off]) { |
129 | 129 | |
130 | - case IPV6_TLV_PAD0: | |
130 | + case IPV6_TLV_PAD1: | |
131 | 131 | optlen = 1; |
132 | 132 | break; |
133 | 133 | default: |
... | ... | @@ -171,7 +171,7 @@ |
171 | 171 | |
172 | 172 | switch (opt[off]) { |
173 | 173 | |
174 | - case IPV6_TLV_PAD0: | |
174 | + case IPV6_TLV_PAD1: | |
175 | 175 | optlen = 1; |
176 | 176 | break; |
177 | 177 | default: |
net/ipv6/exthdrs.c
... | ... | @@ -75,7 +75,7 @@ |
75 | 75 | return offset; |
76 | 76 | |
77 | 77 | switch (opttype) { |
78 | - case IPV6_TLV_PAD0: | |
78 | + case IPV6_TLV_PAD1: | |
79 | 79 | optlen = 1; |
80 | 80 | break; |
81 | 81 | default: |
... | ... | @@ -156,7 +156,7 @@ |
156 | 156 | int i; |
157 | 157 | |
158 | 158 | switch (nh[off]) { |
159 | - case IPV6_TLV_PAD0: | |
159 | + case IPV6_TLV_PAD1: | |
160 | 160 | optlen = 1; |
161 | 161 | break; |
162 | 162 |
net/ipv6/mip6.c