projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
e1de9ca
)
Oops, don't forget to actually put the checksum in the response packet.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 15 Mar 2002 15:08:21 +0000
(15:08 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 15 Mar 2002 15:08:21 +0000
(15:08 +0000)
src/route.c
patch
|
blob
|
history
diff --git
a/src/route.c
b/src/route.c
index
097dd13
..
4e41cdf
100644
(file)
--- 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.
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.3
3 2002/03/15 14:41:57
guus Exp $
+ $Id: route.c,v 1.1.2.3
4 2002/03/15 15:08:21
guus Exp $
*/
#include "config.h"
*/
#include "config.h"
@@
-275,7
+275,7
@@
cp
if(subnet->owner == myself)
return; /* silently ignore */
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 */
/* 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);
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
}
write_packet(packet);
cp
}