mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
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.
This commit is contained in:
committed by
Ondrej Zajicek (work)
parent
bcb25084d3
commit
87a02489f3
@@ -271,3 +271,9 @@ sk_set_priority(sock *s, int prio UNUSED)
|
||||
{
|
||||
ERR_MSG("Socket priority not supported");
|
||||
}
|
||||
|
||||
static inline int
|
||||
sk_set_freebind(sock *s)
|
||||
{
|
||||
ERR_MSG("Freebind is not supported");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user