summaryrefslogtreecommitdiff
path: root/sys/src/9/zynq/main.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2018-06-14 20:48:21 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2018-06-14 20:48:21 +0200
commit4971db9e32dadf72dff6df6293774df2a4f57a89 (patch)
tree2340223fc71d735c2ac95c551c3630380799ea4f /sys/src/9/zynq/main.c
parent39fb26df70b6d8878953ff18046cdc12817a2e42 (diff)
udp: fix udp checksum
we did not apply the special case to store 0xFFFF (-0) in the checksum field when the checksum calculation returned zero. we survived this for v4 as RFC768 states: > If the computed checksum is zero, it is transmitted as > all ones (the equivalent in one's complement arithmetic). > > An all zero transmitted checksum value means that the > transmitter generated no checksum (for debuging or for > higher level protocols that don't care). for ipv6 however, the checksum is not optional and receivers would drop packets with a zero checksum.
Diffstat (limited to 'sys/src/9/zynq/main.c')
0 files changed, 0 insertions, 0 deletions