Handle IPvX only interfaces with IPvY sessions more gracefully.
authorclaudio <claudio@openbsd.org>
Wed, 29 May 2024 10:41:12 +0000 (10:41 +0000)
committerclaudio <claudio@openbsd.org>
Wed, 29 May 2024 10:41:12 +0000 (10:41 +0000)
commitcd5e2f786e137fcba5c0b385dfdc84505e4c9684
treea0c657f2d8f6ec51542243138c7ba2c845e81ed5
parent0e946de2e978135733c82351e93d6b5f7e2e6d34
Handle IPvX only interfaces with IPvY sessions more gracefully.

In up_get_nexthop() check that the local_vX_addr is actually valid
before using it. In the UPDATE generation functions check that the
nexthop is valid before adding it and fail hard if it does not exist.
You can't announce an IPv4 prefix/gateway over an IPv6 only link.
OK henning@ sthen@
usr.sbin/bgpd/rde_update.c