Alexander V. Chernikov 145bf6c0af 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
2021-02-11 23:08:55 +00:00
..
2019-10-17 21:33:01 +00:00
2019-10-17 21:33:01 +00:00
2019-12-21 21:01:03 +00:00
2020-10-30 13:32:58 +00:00
2021-01-29 21:43:20 +00:00
2020-12-29 17:35:06 +01:00
2021-01-29 21:43:20 +00:00
2021-02-11 16:12:29 +01:00
2021-02-11 16:12:29 +01:00
2020-11-29 19:38:03 +00:00
2020-11-20 14:45:45 +00:00
2020-10-16 11:22:29 +00:00
2020-11-08 19:02:22 +00:00
2021-02-11 23:08:55 +00:00
2021-02-11 16:12:29 +01:00