added loopback_ip. This is used to detect packets from ourselves
authorAndrew Tridgell <tridge@samba.org>
Wed, 15 Oct 1997 09:16:30 +0000 (09:16 +0000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 15 Oct 1997 09:16:30 +0000 (09:16 +0000)
(This used to be commit eb76fea411c5c3aa96b7158d02b49ed42ec7ba70)

source3/lib/interface.c

index 147425d0fc1f90fb4695cfef9a9f89b82e3f7f91..1dc605ff2fd6546bc58024d32c99a4010ca4eac0 100644 (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 */