summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1997-10-15 09:16:30 +0000
committerAndrew Tridgell <tridge@samba.org>1997-10-15 09:16:30 +0000
commitcc0f55bd5bce086004c837b4e94b0a0e39b366ed (patch)
tree5dd18e9a6b1b1efd846b2daf89c0783a2a842a4d /source3
parent9d3cce7c68723954bf3e97ba5681aa60c31eb835 (diff)
downloadsamba-cc0f55bd5bce086004c837b4e94b0a0e39b366ed.tar.gz
samba-cc0f55bd5bce086004c837b4e94b0a0e39b366ed.tar.bz2
samba-cc0f55bd5bce086004c837b4e94b0a0e39b366ed.zip
added loopback_ip. This is used to detect packets from ourselves
(This used to be commit eb76fea411c5c3aa96b7158d02b49ed42ec7ba70)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/interface.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c
index 147425d0fc..1dc605ff2f 100644
--- a/source3/lib/interface.c
+++ b/source3/lib/interface.c
@@ -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 */