mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 06:22:01 +03:00
Verify checksums on the RX datapath.
Simplify checksum generation on the TX datapath.
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user