X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Froute.c;h=4e41cdff7ca6fcb68fc61adffe8b7ac624179596;hp=097dd13fc1508e2b54f17612d6735f9a367ecf13;hb=0e93f0aa02274481c16fc9f30b795d4f063bd1c3;hpb=e1de9ca990ea638c7e297c5335be415e44c250c1 diff --git a/src/route.c b/src/route.c index 097dd13f..4e41cdff 100644 --- a/src/route.c +++ b/src/route.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: route.c,v 1.1.2.33 2002/03/15 14:41:57 guus Exp $ + $Id: route.c,v 1.1.2.34 2002/03/15 15:08:21 guus Exp $ */ #include "config.h" @@ -275,7 +275,7 @@ cp if(subnet->owner == myself) return; /* silently ignore */ - + /* Create neighbor advertation reply */ memcpy(packet->data, packet->data + ETHER_ADDR_LEN, ETHER_ADDR_LEN); /* copy destination address */ @@ -305,6 +305,8 @@ cp checksum = inet_checksum((unsigned short int *)&pseudo, sizeof(pseudo)/2, ~0); checksum = inet_checksum((unsigned short int *)ns, sizeof(*ns)/2 + 4, checksum); + ns->nd_ns_hdr.icmp6_cksum = checksum; + write_packet(packet); cp }