]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
IPV6_CHECKSUM should not be used on ICMPv6 sockets.
authorOndrej Zajicek <santiago@crfreenet.org>
Sat, 25 Jun 2011 09:35:54 +0000 (11:35 +0200)
committerOndrej Zajicek <santiago@crfreenet.org>
Sat, 25 Jun 2011 09:35:54 +0000 (11:35 +0200)
proto/radv/packets.c

index 8aa487b0473dd7635d850074c452fbcf68287a34..ac59ce9436dca14451e4cba10aeee59f712faef5 100644 (file)
@@ -244,10 +244,6 @@ radv_sk_open(struct radv_iface *ifa)
 
   sk->saddr = ifa->addr->ip;
 
-  /* 2 is an offset of the checksum in an ICMPv6 packet */
-  if (sk_set_ipv6_checksum(sk, 2) < 0)
-    goto err;
-
   /* We want listen just to ICMPv6 messages of type RS and RA */
   if (sk_set_icmp_filter(sk, ICMPV6_RS, ICMPV6_RA) < 0)
     goto err;