]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
define no_addr
authorwessels <>
Tue, 23 Jul 1996 10:11:03 +0000 (10:11 +0000)
committerwessels <>
Tue, 23 Jul 1996 10:11:03 +0000 (10:11 +0000)
src/comm.cc
src/squid.h

index 9db02cd100e57a3447ee8bfd949824c41e102462..fd2786641bd18011a950e7f2e42d3358f455e229 100644 (file)
@@ -1,7 +1,7 @@
 
 
 /*
- * $Id: comm.cc,v 1.44 1996/07/22 16:40:22 wessels Exp $
+ * $Id: comm.cc,v 1.45 1996/07/23 04:11:03 wessels Exp $
  *
  * DEBUG: section 5     Socket Functions
  * AUTHOR: Harvest Derived
 
 int RESERVED_FD = 64;
 struct in_addr any_addr;
+struct in_addr no_addr;
 
 #define min(x,y) ((x)<(y)? (x) : (y))
 #define max(a,b) ((a)>(b)? (a) : (b))
@@ -1029,7 +1030,8 @@ int comm_init()
     meta_data.misc += FD_SETSIZE * sizeof(int);
     zero_tv.tv_sec = 0;
     zero_tv.tv_usec = 0;
-    any_addr.s_addr = inet_addr("0.0.0.0");
+    any_addr.s_addr = INADDR_ANY;
+    no_addr.s_addr = INADDR_NONE;
     return 0;
 }
 
index 586f38b1a31d1f5c9d757024bcf29f8086ddea68..c814d5fd55737951c37146bb1f1e1884678862b7 100644 (file)
@@ -1,6 +1,6 @@
 
 /*
- * $Id: squid.h,v 1.32 1996/07/22 17:19:52 wessels Exp $
+ * $Id: squid.h,v 1.33 1996/07/23 04:11:05 wessels Exp $
  *
  * AUTHOR: Duane Wessels
  *
@@ -274,6 +274,7 @@ extern char appname[];              /* main.c */
 extern struct in_addr local_addr;      /* main.c */
 extern char localhost[];
 extern struct in_addr any_addr;        /* comm.c */
+extern struct in_addr no_addr; /* comm.c */
 extern int do_redirect;                /* redirect.c */