]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Allow FreeBSD to set and delete addresses from an interface 7136/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 21 Sep 2020 00:21:41 +0000 (20:21 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 21 Sep 2020 00:53:27 +0000 (20:53 -0400)
commit8c36640b7cd2b880201ee8510155719d3145d457
tree06ef187496d42173eb7865aa1f2ad223477947b6
parent1f79037b72f0ec93153f9505a11bce9812429993
zebra: Allow FreeBSD to set and delete addresses from an interface

This series of events:

$ sudo ifconfig lo0 add 4.4.4.4/32
$ sudo ifconfig lo0 inet 4.4.4.4/32 delete

would end up leaving the 4.4.4.4/32 address on the interface under
freebsd.

This all boils down to the fact that the interface is not
considered connected yet we have a destination.  If the
destination is the same and we are not connected ignore
it on freebsd.

I am sure there are other fun scenarios that someone
will have to squirrel out.

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