]> git.proxmox.com Git - mirror_frr.git/commit - zebra/rt_socket.c
zebra: Add code to install v6 blackhole routes on *bsd
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 7 May 2020 15:24:05 +0000 (11:24 -0400)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 7 May 2020 15:24:05 +0000 (11:24 -0400)
commit381477e8a6ddb03f30521b9da50178a5623d0df0
tree857930f7ec48f2bf5e0debe744357ff037937459
parentb4b1d1ebdbee99664c0607cf4abac977dfc896b6
zebra: Add code to install v6 blackhole routes on *bsd

This code was just missing.  Take the few minutes and
get it done.

!
ip route 4.5.6.7/32 Null0
ipv6 route 4::5/128 Null0
!
$ netstat -rn
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            192.168.122.1      UGS      vtnet0
4.5.6.7/32         127.0.0.1          UG1B        lo0
127.0.0.1          link#2             UH          lo0
192.168.122.0/24   link#1             U        vtnet0
192.168.122.40     link#1             UHS         lo0

Internet6:
Destination                       Gateway                       Flags     Netif Expire
::/96                             ::1                           UGRS        lo0
::1                               link#2                        UH          lo0
::ffff:0.0.0.0/96                 ::1                           UGRS        lo0
4::5/128                          ::1                           UG1B        lo0
fe80::/10                         ::1                           UGRS        lo0
fe80::%vtnet0/64                  link#1                        U        vtnet0
fe80::5054:ff:fe5a:e705%vtnet0    link#1                        UHS         lo0
fe80::%lo0/64                     link#2                        U           lo0
fe80::1%lo0                       link#2                        UHS         lo0
ff02::/16                         ::1                           UGRS        lo0
$

$ uname -a
FreeBSD donna 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC  amd64
$

Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
zebra/rt_socket.c