route: Add support for route(4) message filtering

Operating Systems / DragonFlyBSD - Roy Marples [marples.name] - 16 August 2019 15:39 EDT

This saves waking up listeners for messages they have no interest in. It also helps to reduce the chance of a receive buffer overflow.

Taken-from: OpenBSD

8aeffa9f3b route: Add support for route(4) message filtering.
share/man/man4/route.4 | 21 ++++++++++-
sys/net/raw_cb.h | 2 ++
sys/net/raw_usrreq.c | 3 ++
sys/net/route.h | 6 ++++
sys/net/rtsock.c | 96 ++++++++++++++++++++++++++++++++++++++++++++++++--
5 files changed, 124 insertions(+), 4 deletions(-)

Upstream: gitweb.dragonflybsd.org


  • Share