summaryrefslogtreecommitdiffstats
path: root/src/net/icmpv6.c
diff options
context:
space:
mode:
authorMichael Brown2007-01-03 21:48:52 +0100
committerMichael Brown2007-01-03 21:48:52 +0100
commita0525a4ed36a28260d6dee4723bd6a1eb29020be (patch)
tree720037999566f4a80c7873f173938fddf2942d5e /src/net/icmpv6.c
parentTidy up debug messages (diff)
downloadipxe-a0525a4ed36a28260d6dee4723bd6a1eb29020be.tar.gz
ipxe-a0525a4ed36a28260d6dee4723bd6a1eb29020be.tar.xz
ipxe-a0525a4ed36a28260d6dee4723bd6a1eb29020be.zip
Verify checksums on the RX datapath.
Simplify checksum generation on the TX datapath.
Diffstat (limited to 'src/net/icmpv6.c')
-rw-r--r--src/net/icmpv6.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/net/icmpv6.c b/src/net/icmpv6.c
index d1f58bd1..3f2b06f8 100644
--- a/src/net/icmpv6.c
+++ b/src/net/icmpv6.c
@@ -60,7 +60,7 @@ int icmp6_send_solicit ( struct net_device *netdev, struct in6_addr *src __unuse
st_dest.sin6.sin6_addr.in6_u.u6_addr8[13] = 0xff;
/* Send packet over IP6 */
- return ( tcpip_tx ( pkb, &icmp6_protocol, &st_dest.st ) );
+ return tcpip_tx ( pkb, &icmp6_protocol, &st_dest.st, &nsolicit->csum );
}
/**
@@ -124,5 +124,4 @@ struct tcpip_protocol icmp6_protocol __tcpip_protocol = {
.name = "ICMP6",
.rx = icmp6_rx,
.tcpip_proto = IP_ICMP6, // 58
- .csum_offset = 2,
};