From: wessels <> Date: Tue, 23 Jul 1996 10:11:03 +0000 (+0000) Subject: define no_addr X-Git-Tag: SQUID_3_0_PRE1~6005 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a1ab1e71bf790c361d4f466850dc4c67e40e6af6;p=thirdparty%2Fsquid.git define no_addr --- diff --git a/src/comm.cc b/src/comm.cc index 9db02cd100..fd2786641b 100644 --- a/src/comm.cc +++ b/src/comm.cc @@ -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 @@ -117,6 +117,7 @@ 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; } diff --git a/src/squid.h b/src/squid.h index 586f38b1a3..c814d5fd55 100644 --- a/src/squid.h +++ b/src/squid.h @@ -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 */