aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorEldad Zack <eldad@fogrefinery.com>2012-05-17 02:00:25 -0400
committerDavid S. Miller <davem@davemloft.net>2012-05-17 15:49:51 -0400
commit1de5a71c3e6eae2fbf15e9a9e13a8fc269bb82bc (patch)
treeb28a39f932993a61855be0ffbd8844a7bddb645c /net/bridge
parent048b899ce38c3e1db88cb4464547090ef28630f8 (diff)
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/bridge')
-rw-r--r--net/bridge/br_multicast.c4
-rw-r--r--net/bridge/br_netfilter.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/net/bridge/br_multicast.c b/net/bridge/br_multicast.c
index 5ca4c50ea233..b66581208cb2 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 dce55d4ee83b..e41456bd3cc6 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