Handle binding upstream servers to an interface

(--server=1.2.3.4@eth0) when the named interface
is destroyed and recreated in the kernel.
This commit is contained in:
Beniamino Galvani
2016-08-28 20:44:05 +01:00
committed by Simon Kelley
parent e94ad0fa01
commit 2675f20615
3 changed files with 35 additions and 2 deletions

View File

@@ -488,6 +488,7 @@ struct serverfd {
int fd;
union mysockaddr source_addr;
char interface[IF_NAMESIZE+1];
unsigned int ifindex, used;
struct serverfd *next;
};