summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2017-02-10 15:13:09 +0000
committerJukka Rissanen <jukka.rissanen@linux.intel.com>2017-02-14 08:30:34 +0200
commit0296cdd728b6520635a99ab503a8774277aac150 (patch)
treefb19606969bff3ecae898e8e38f41162ac4168c1 /samples
parentccd6d8c79f1cce7786abfdd5dad966c07ae9c137 (diff)
net/dhcpv4: Ensure udp header checksum is computed correctly
The dhcpv4 client code builds ip and udp packets from scratch rather than using the network stack to do the heavy lifting (why ?). When it computes the udp checksum of each packet it builds it neglects to clear any preexisting detritus from the checksum field. The result of this is that some packets will be built with correct checksums and some will be built with incorrect checksums. This is the underlying reason that the dhcp client often taken many retransmissions and elapsed time before in order to acquire an IP address. Change-Id: Iebd1ed34e06f7f2e53d45f6d1555e22f48490287 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions