mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
When sending UDP packets: * compute the checksum in the correct order. This only has an impact if the length of the payload is odd. * don't send packet with a checksum of zero, use 0xffff instead as required. When receiving UDP packets: * don't do any computations when the checksum is zero. * compute the checksum in the correct order. This only has an impact if the length of the payload is odd. * when computing the checksum, store the pseudo header checksum * if the checksum is computed as zero, use 0xffff instead. * also accept packets, when the checksum in the packet is the pseudo header checksum. The last point fixes a problem when the DHCP client runs in a VM, the DHCP server runs on the host serving the VM and the network interface supports transmit checksum offloading. Since dhclient doesn't use UDP sockets but bpf devices to read the packets, the checksum will be incorrect and only contain the checksum of the pseudo header. PR: 263229 Reviewed by: markj, Timo Völker Tested by: danilo MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D52394 |
||
|---|---|---|
| .. | ||
| tests | ||
| alloc.c | ||
| bpf.c | ||
| clparse.c | ||
| conflex.c | ||
| convert.c | ||
| dhclient-script | ||
| dhclient-script.8 | ||
| dhclient.8 | ||
| dhclient.c | ||
| dhclient.conf | ||
| dhclient.conf.5 | ||
| dhclient.leases.5 | ||
| dhcp-options.5 | ||
| dhcp.h | ||
| dhcpd.h | ||
| dhctoken.h | ||
| dispatch.c | ||
| errwarn.c | ||
| hash.c | ||
| inet.c | ||
| Makefile | ||
| Makefile.depend | ||
| Makefile.depend.options | ||
| options.c | ||
| packet.c | ||
| parse.c | ||
| privsep.c | ||
| privsep.h | ||
| tables.c | ||
| tree.c | ||
| tree.h | ||