freebsd-src/sbin/route
Roy Marples f452713408 socket: Implement SO_RERROR
SO_RERROR indicates that receive buffer overflows should be handled as
errors. Historically receive buffer overflows have been ignored and
programs could not tell if they missed messages or messages had been
truncated because of overflows. Since programs historically do not
expect to get receive overflow errors, this behavior is not the
default.

This is really really important for programs that use route(4) to keep
in sync with the system. If we loose a message then we need to reload
the full system state, otherwise the behaviour from that point is
undefined and can lead to chasing bogus bug reports.

Reviewed by:	philip (network), kbowling (transport), gbe (manpages)
MFC after:	2 weeks
Differential Revision:	https://reviews.freebsd.org/D26652

(cherry picked from commit 7045b1603b)
2021-08-10 18:54:00 -07:00
..
tests Skip sbin/route tests if jail not installed (WITHOUT_JAIL). 2020-08-04 21:34:13 +00:00
keywords
Makefile Add tests for "add", "change" and "delete" functionality of /sbin/route. 2020-07-22 13:49:54 +00:00
Makefile.depend
route.8 route(8): clarify -prefixlen description 2019-01-10 00:10:12 +00:00
route.c socket: Implement SO_RERROR 2021-08-10 18:54:00 -07:00