david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

conn->local_port is now network-endian; do not swap when comparing

against value in header.

Temporarily disable RX checksumming; it's broken and is holding up
work on higher-layer protocols
.
This commit is contained in:
Michael Brown 2006-07-20 00:03:01 +00:00
parent 36c94eae78
commit 29b358dd39
1 changed files with 5 additions and 2 deletions

View File

@ -235,17 +235,20 @@ void udp_rx ( struct pk_buff *pkb, struct in_addr *src_net_addr __unused,
}
/* Verify the checksum */
#warning "Don't we need to take the pseudo-header into account here?"
#if 0
chksum = tcpip_chksum ( pkb->data, pkb_len ( pkb ) );
if ( chksum != 0xffff ) {
DBG ( "Bad checksum %d\n", chksum );
DBG ( "Bad checksum %#x\n", chksum );
return;
}
#endif
/* Todo: Check if it is a broadcast or multicast address */
/* Demux the connection */
list_for_each_entry ( conn, &udp_conns, list ) {
if ( conn->local_port == ntohs ( udphdr->dest_port ) ) {
if ( conn->local_port == udphdr->dest_port ) {
goto conn;
}
}