]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Allow FreeBSD to set and delete addresses from an interface 7151/head
authorDonald Sharp <sharpd@nvidia.com>
Mon, 21 Sep 2020 00:21:41 +0000 (20:21 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Tue, 22 Sep 2020 14:04:06 +0000 (10:04 -0400)
commit580a0fe7a3cd6f4f5099840f4031e164c4818799
treed0dae49e77a24502b9da013a8cbe97dda9e3864f
parent1623853af152ed06acbb2bfa8e926885631054bf
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