Bind to interface

Allow binding to interface instead of IP with SO_BINDTODEVICE.
This commit is contained in:
llorx
2019-11-04 23:26:11 +01:00
parent 79dccfd697
commit 939b347129
7 changed files with 29 additions and 5 deletions

2
misc.h
View File

@@ -39,6 +39,8 @@ extern int fix_latency;
//extern char local_ip[100], remote_ip[100];
//extern int local_port, remote_port;
extern char interface_string[16];
extern bool has_b;
extern address_t local_addr,remote_addr,bind_addr;