chiark / gitweb /
Various C files: Ignore write errors of UDP and IP datagrams.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 22 May 2010 11:42:46 +0000 (12:42 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 22 May 2010 11:44:25 +0000 (12:44 +0100)
commit3fe0fc3a60fc3f29ee40b8474192a585a5eeaaa0
tree98410c4c6b1116921b82e5b1b4d96bee084e6fbc
parent898975ee8b892cadd04322dc884b3bb8d491c8f8
Various C files: Ignore write errors of UDP and IP datagrams.

These packets are expected to go missing periodically and everyone will
cope.  Unfortunately, GCC wants us to do something with the return code
from write(2), so we explicitly assign it to a write-only variable and
hope that its data-flow analysis is done after it checks for return-code
ignoring.
pkstream/pkstream.c
proxy/tripe-mitm.c
server/tun-bsd.c
server/tun-linux.c
server/tun-unet.c