mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
port allocator: drop skip bind check flag
This flag is only used for tests. Let's instead overload bind syscall in mocks where it is not done yet. Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
This commit is contained in:
committed by
Michal Privoznik
parent
56def261da
commit
4c9c7a5ba2
@@ -53,3 +53,10 @@ int virNetDevSetOnline(const char *ifname ATTRIBUTE_UNUSED,
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
int bind(int sockfd ATTRIBUTE_UNUSED,
|
||||
const struct sockaddr *addr ATTRIBUTE_UNUSED,
|
||||
socklen_t addrlen ATTRIBUTE_UNUSED)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user