aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/in6.h2
-rw-r--r--net/bridge/br_multicast.c4
-rw-r--r--net/bridge/br_netfilter.c2
-rw-r--r--net/ipv6/ah6.c4
-rw-r--r--net/ipv6/exthdrs.c4
-rw-r--r--net/ipv6/mip6.c2
-rw-r--r--net/sched/act_csum.c2
7 files changed, 10 insertions, 10 deletions
diff --git a/include/linux/in6.h b/include/linux/in6.h
index 5c83d9e3eb8..cba469ba11a 100644
--- a/include/linux/in6.h
+++ b/include/linux/in6.h
@@ -142,7 +142,7 @@ struct in6_flowlabel_req {
142/* 142/*
143 * IPv6 TLV options. 143 * IPv6 TLV options.
144 */ 144 */
145#define IPV6_TLV_PAD0 0 145#define IPV6_TLV_PAD1 0
146#define IPV6_TLV_PADN 1 146#define IPV6_TLV_PADN 1
147#define IPV6_TLV_ROUTERALERT 5 147#define IPV6_TLV_ROUTERALERT 5
148#define IPV6_TLV_JUMBO 194 148#define IPV6_TLV_JUMBO 194
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index 5ca4c50ea23..b66581208cb 100644
--- a/net/bridge/br_multicast.c
+++ b/net/bridge/br_multicast.c
@@ -460,8 +460,8 @@ static struct sk_buff *br_ip6_multicast_alloc_query(struct net_bridge *br,
460 hopopt[3] = 2; /* Length of RA Option */ 460 hopopt[3] = 2; /* Length of RA Option */
461 hopopt[4] = 0; /* Type = 0x0000 (MLD) */ 461 hopopt[4] = 0; /* Type = 0x0000 (MLD) */
462 hopopt[5] = 0; 462 hopopt[5] = 0;
463 hopopt[6] = IPV6_TLV_PAD0; /* Pad0 */ 463 hopopt[6] = IPV6_TLV_PAD1; /* Pad1 */
464 hopopt[7] = IPV6_TLV_PAD0; /* Pad0 */ 464 hopopt[7] = IPV6_TLV_PAD1; /* Pad1 */
465 465
466 skb_put(skb, sizeof(*ip6h) + 8); 466 skb_put(skb, sizeof(*ip6h) + 8);
467 467
diff --git a/net/bridge/br_netfilter.c b/net/bridge/br_netfilter.c
index dce55d4ee83..e41456bd3cc 100644
--- a/net/bridge/br_netfilter.c
+++ b/net/bridge/br_netfilter.c
@@ -558,7 +558,7 @@ static int check_hbh_len(struct sk_buff *skb)
558 int optlen = nh[off + 1] + 2; 558 int optlen = nh[off + 1] + 2;
559 559
560 switch (nh[off]) { 560 switch (nh[off]) {
561 case IPV6_TLV_PAD0: 561 case IPV6_TLV_PAD1:
562 optlen = 1; 562 optlen = 1;
563 break; 563 break;
564 564
diff --git a/net/ipv6/ah6.c b/net/ipv6/ah6.c
index 9aa3d010ac5..5d32e7a93b2 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)
127 127
128 switch (opt[off]) { 128 switch (opt[off]) {
129 129
130 case IPV6_TLV_PAD0: 130 case IPV6_TLV_PAD1:
131 optlen = 1; 131 optlen = 1;
132 break; 132 break;
133 default: 133 default:
@@ -171,7 +171,7 @@ static void ipv6_rearrange_destopt(struct ipv6hdr *iph, struct ipv6_opt_hdr *des
171 171
172 switch (opt[off]) { 172 switch (opt[off]) {
173 173
174 case IPV6_TLV_PAD0: 174 case IPV6_TLV_PAD1:
175 optlen = 1; 175 optlen = 1;
176 break; 176 break;
177 default: 177 default:
diff --git a/net/ipv6/exthdrs.c b/net/ipv6/exthdrs.c
index a93bd231eca..a3cded6a199 100644
--- a/net/ipv6/exthdrs.c
+++ b/net/ipv6/exthdrs.c
@@ -75,7 +75,7 @@ int ipv6_find_tlv(struct sk_buff *skb, int offset, int type)
75 return offset; 75 return offset;
76 76
77 switch (opttype) { 77 switch (opttype) {
78 case IPV6_TLV_PAD0: 78 case IPV6_TLV_PAD1:
79 optlen = 1; 79 optlen = 1;
80 break; 80 break;
81 default: 81 default:
@@ -156,7 +156,7 @@ static int ip6_parse_tlv(struct tlvtype_proc *procs, struct sk_buff *skb)
156 int i; 156 int i;
157 157
158 switch (nh[off]) { 158 switch (nh[off]) {
159 case IPV6_TLV_PAD0: 159 case IPV6_TLV_PAD1:
160 optlen = 1; 160 optlen = 1;
161 break; 161 break;
162 162
diff --git a/net/ipv6/mip6.c b/net/ipv6/mip6.c
index 2e02f7c9d76..5b087c31d87 100644
--- a/net/ipv6/mip6.c
+++ b/net/ipv6/mip6.c
@@ -46,7 +46,7 @@ static inline void *mip6_padn(__u8 *data, __u8 padlen)
46 if (!data) 46 if (!data)
47 return NULL; 47 return NULL;
48 if (padlen == 1) { 48 if (padlen == 1) {
49 data[0] = IPV6_TLV_PAD0; 49 data[0] = IPV6_TLV_PAD1;
50 } else if (padlen > 1) { 50 } else if (padlen > 1) {
51 data[0] = IPV6_TLV_PADN; 51 data[0] = IPV6_TLV_PADN;
52 data[1] = padlen - 2; 52 data[1] = padlen - 2;
diff --git a/net/sched/act_csum.c b/net/sched/act_csum.c
index 882124ceb70..2c8ad7c86e4 100644
--- a/net/sched/act_csum.c
+++ b/net/sched/act_csum.c
@@ -397,7 +397,7 @@ static int tcf_csum_ipv6_hopopts(struct ipv6_opt_hdr *ip6xh,
397 397
398 while (len > 1) { 398 while (len > 1) {
399 switch (xh[off]) { 399 switch (xh[off]) {
400 case IPV6_TLV_PAD0: 400 case IPV6_TLV_PAD1:
401 optlen = 1; 401 optlen = 1;
402 break; 402 break;
403 case IPV6_TLV_JUMBO: 403 case IPV6_TLV_JUMBO: