]> git.ipfire.org Git - thirdparty/bird.git/commit
IO: Support nonlocal bind in socket interface
authorAlexander Zubkov <green@qrator.net>
Sat, 8 Jan 2022 17:31:56 +0000 (18:31 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Sat, 8 Jan 2022 18:02:31 +0000 (19:02 +0100)
commit87a02489f3880689a4e2ad72b0b981649dad2154
treeb5e486015ab7907bf165ae20851290258e72114d
parentbcb25084d31fdb90fcf1666f10e73fe0f863afc0
IO: Support nonlocal bind in socket interface

Add option to socket interface for nonlocal binding, i.e. binding to an
IP address that is not present on interfaces. This behaviour is enabled
when SKF_FREEBIND socket flag is set. For Linux systems, it is
implemented by IP_FREEBIND socket flag.

Minor changes done by commiter.
lib/socket.h
sysdep/bsd/sysio.h
sysdep/linux/sysio.h
sysdep/unix/io.c