1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

added loopback_ip. This is used to detect packets from ourselves

This commit is contained in:
Andrew Tridgell
-
parent e1e86c1a16
commit eb76fea411

View File

@ -25,6 +25,7 @@ extern int DEBUGLEVEL;
struct in_addr ipzero;
struct in_addr wins_ip;
struct in_addr loopback_ip;
static struct in_addr default_ip;
static struct in_addr default_bcast;
static struct in_addr default_nmask;
@ -262,6 +263,7 @@ static void interpret_interfaces(char *s, struct interface **interfaces,
ipzero = *interpret_addr2("0.0.0.0");
wins_ip = *interpret_addr2("255.255.255.255");
loopback_ip = *interpret_addr2("127.0.0.1");
while (next_token(&ptr,token,NULL)) {
/* parse it into an IP address/netmasklength pair */