diff options
author | 2015-01-08 14:29:18 +0000 | |
---|---|---|
committer | 2015-01-08 14:29:18 +0000 | |
commit | 8c023157f568c27d8c9df36edc287db0b4676746 (patch) | |
tree | 8744fbce3b61644f01ad3feb423a920f143458f9 /usr.sbin/syslogd/syslogd.c | |
parent | fix ssh_config FingerprintHash evaluation order; from Petr Lautrbach (diff) | |
download | wireguard-openbsd-8c023157f568c27d8c9df36edc287db0b4676746.tar.xz wireguard-openbsd-8c023157f568c27d8c9df36edc287db0b4676746.zip |
Factorize various duplicated chunks of (old and horrible) code, checking
for the validity of a given outgoing route entry into a single function.
This change is inspired from FreeBSD r111767. The function introduced
here, rt_checkgate(), should hopefully die in a near future. Why should
it die? Well, it is way too late to do such validity checks: if your
kernel can ends up in ether_output() with an invalid route, please do
not let it try to find a new one that might do the job.
Go read this function if you're wondering why you're getting messages
like:
"arpresolve: X.X.X.X: route without link local address"
Since this horrible logic has survived 20 years of copy & past and small
modifications for workarounds without a single clear commit message, let's
assume it is full of dragons and try to play safe. This factorization is
not intended to change any behavior.
With much inputs from bluhm@, tested by weerd@ and florian@ on setups
with p2p IPv6 interfaces.
ok bluhm@, benno@, florian@
Diffstat (limited to 'usr.sbin/syslogd/syslogd.c')
0 files changed, 0 insertions, 0 deletions