diff options
author | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2021-02-08 23:29:05 +0000 |
---|---|---|
committer | Alexander V. Chernikov <melifaro@FreeBSD.org> | 2021-02-11 23:08:55 +0000 |
commit | 145bf6c0af48b89f13465e145f4516de37c31d85 (patch) | |
tree | 47878cb61e5b3d0ec3494dacca520228741f2663 /usr.sbin | |
parent | e6405c8c37335a42a187a9d2470025b57347b1b5 (diff) | |
download | src-145bf6c0af48b89f13465e145f4516de37c31d85.tar.gz src-145bf6c0af48b89f13465e145f4516de37c31d85.zip |
Fix blackhole/reject routes.
Traditionally *BSD routing stack required to supply some
interface data for blackhole/reject routes. This lead to
varieties of hacks in routing daemons when inserting such routes.
With the recent routeing stack changes, gateway sockaddr without
RTF_GATEWAY started to be treated differently, purely as link
identifier.
This change broke net/bird, which installs blackhole routes with
127.0.0.1 gateway without RTF_GATEWAY flags.
Fix this by automatically constructing necessary gateway data at
rtsock level if RTF_REJECT/RTF_BLACKHOLE is set.
Reported by: Marek Zarychta <zarychtam at plan-b.pwste.edu.pl>
Reviewed by: donner
MFC after: 1 week
Diffstat (limited to 'usr.sbin')
0 files changed, 0 insertions, 0 deletions