## Process this file with automake to produce Makefile.in
#
-# $Id: Makefile.am,v 1.27 2006/05/11 01:36:57 hno Exp $
-#
AUTOMAKE_OPTIONS = dist-bzip2 subdir-objects 1.5 foreign
DIST_SUBDIRS = lib snmplib scripts src icons errors contrib doc helpers test-suite tools
-SUBDIRS = lib @makesnmplib@ scripts src icons errors doc helpers test-suite tools
+SUBDIRS = lib @makesnmplib@ scripts src/ip src icons errors doc helpers test-suite tools
DISTCLEANFILES = include/stamp-h include/stamp-h[0-9]*
DEFAULT_PINGER = $(libexecdir)/`echo pinger | sed '$(transform);s/$$/$(EXEEXT)/'`
acl_ip_data::acl_ip_data () :addr1(), addr2(), mask(), next (NULL) {}
-acl_ip_data::acl_ip_data (IpAddress const &anAddress1, IpAddress const &anAddress2, IPAddress const &aMask, acl_ip_data *aNext) : addr1(anAddress1), addr2(anAddress2), mask(aMask), next(aNext) {}
+acl_ip_data::acl_ip_data (IpAddress const &anAddress1, IpAddress const &anAddress2, IpAddress const &aMask, acl_ip_data *aNext) : addr1(anAddress1), addr2(anAddress2), mask(aMask), next(aNext) {}
acl_ip_data ();
- acl_ip_data (IpAddress const &, IpAddress const &, IPAddress const &, acl_ip_data *);
+ acl_ip_data (IpAddress const &, IpAddress const &, IpAddress const &, acl_ip_data *);
void toStr(char *buf, int len) const;
IpAddress addr1;
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.201 2008/02/26 00:19:29 rousskov Exp $
-#
# Uncomment and customize the following to suit your needs:
#
cf_gen.cc \
defines.h \
debug.cc \
- ip/stubQosConfig.cc \
time.cc
nodist_cf_gen_SOURCES = globals.cc
nodist_cf_gen_HEADER = cf_gen_defines.h
+cf_gen_LDADD= \
+ libsquid.la \
+ libauth.la \
+ ip/libip.la \
+ -L../lib -lmiscutil \
+ @XTRA_LIBS@ \
+ @EPOLL_LIBS@ \
+ @MINGW_LIBS@
cf_gen.$(OBJEXT): cf_gen_defines.h
all_FSMODULES = \
## client_db wants SNMP_SOURCE
## snmp_core wants ACLStringData
## SwapDir wants ConfigOption
-## tools.cc wants libip.la
-## client_side.cc wants libip.la
+## tools.cc wants ip/libip.la
+## client_side.cc wants ip/libip.la
ufsdump_SOURCES = \
debug.cc \
int.cc \
data_DATA = \
mib.txt
-LDADD = libsquid.la libauth.la -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
+LDADD = libsquid.la libauth.la ip/libip.la -L../lib -lmiscutil @XTRA_LIBS@ @EPOLL_LIBS@ @MINGW_LIBS@
EXTRA_DIST = \
cf_gen_defines \
tests/stub_store.cc HttpHeaderTools.cc HttpHeader.cc acl.cc mem.cc \
MemBuf.cc HttpHdrContRange.cc Packer.cc ACLChecklist.cc HttpHdrCc.cc HttpHdrSc.cc \
HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
- ip/stubQosConfig.cc \
StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
tests/stub_HttpRequest.cc tests/stub_DelayId.cc \
tests/stub_MemObject.cc mem_node.cc \
tests_testAuth_LDADD= \
libsquid.la \
libauth.la \
+ ip/libip.la \
@AUTH_LINKOBJS@ @AUTH_OBJS@ \
-L../lib -lmiscutil \
@REGEXLIB@ \
mem_node.cc \
Packer.cc \
Parsing.cc \
- ip/stubQosConfig.cc \
StatHist.cc \
stmem.cc \
String.cc \
tests_testACLMaxUserIP_LDADD= \
libsquid.la \
libauth.la \
+ ip/libip.la \
-L../lib -lmiscutil \
@REGEXLIB@ \
@SQUID_CPPUNIT_LIBS@ \
nodist_tests_testDiskIO_SOURCES= \
$(SWAP_TEST_GEN_SOURCES)
tests_testDiskIO_LDADD = \
+ ip/libip.la \
@DISK_LIBS@ \
$(SWAP_TEST_LDADD) \
SquidConfig.o
tests_testStore_LDADD= \
libsquid.la \
libauth.la \
+ ip/libip.la \
-L../lib -lmiscutil \
@REGEXLIB@ \
@SQUID_CPPUNIT_LIBS@ \
# libsquid pulls in SquidConfig and children. stub them.
tests_testString_SOURCES = \
mem.cc \
- ip/stubQosConfig.cc \
String.cc \
tests/testMain.cc \
tests/testString.cc \
$(TESTSOURCES)
tests_testString_LDADD = \
libsquid.la \
+ ip/libip.la \
-L../lib -lmiscutil \
@REGEXLIB@ \
@SQUID_CPPUNIT_LIBS@ \
$(SWAP_TEST_GEN_SOURCES)
tests_testUfs_LDADD = \
libsquid.la \
+ ip/libip.la \
$(SWAP_TEST_LDADD) \
@SSLLIB@
tests_testUfs_LDFLAGS = $(LIBADD_DL)
/*
- * $Id: SquidTime.h,v 1.4 2007/12/14 23:11:45 amosjeffries Exp $
- *
* DEBUG: section 21 Time Functions
* AUTHOR: Harvest Derived
*
#ifndef SQUID_TIME_H
#define SQUID_TIME_H
-#include "squid.h"
+#include "config.h"
+
+#if HAVE_TIME_H
+#include <time.h>
+#endif
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+
/* globals for accessing time */
extern struct timeval current_time;
refreshpattern
removalpolicy
size_t
-IPAddress_list
+IpAddress_list
string
string
time_t
DOC_END
NAME: wccp2_router
-TYPE: IPAddress_list
+TYPE: IpAddress_list
LOC: Config.Wccp2.router
DEFAULT: none
IFDEF: USE_WCCPv2
-
/*
- * $Id: cf_gen.cc,v 1.62 2007/09/17 20:21:23 hno Exp $
- *
* DEBUG: none Generate squid.conf.default and cf_parser.h
* AUTHOR: Max Okumoto
*
* administrator.
*****************************************************************************/
-#include "squid.h"
-#include "SquidTime.h"
+//#include "squid.h"
+#include "config.h"
+#include "assert.h"
+//#include "SquidTime.h"
#include "cf_gen_defines.h"
+#include "util.h"
+
+#if HAVE_STRING_H
+#include <string.h>
+#endif
+#if HAVE_STRING_H
+#include <ctype.h>
+#endif
#define MAX_LINE 1024 /* longest configuration line */
#define _PATH_PARSER "cf_parser.h"
return false;
}
-IpAddress& IpAddress::operator =(const IPAddress &s)
+IpAddress& IpAddress::operator =(const IpAddress &s)
{
memcpy(this, &s, sizeof(IpAddress));
return *this;
#endif
-IpAddress::IpAddress(const IPAddress &s)
+IpAddress::IpAddress(const IpAddress &s)
{
SetEmpty();
operator=(s);
}
-IpAddress::IpAddress(IPAddress *s)
+IpAddress::IpAddress(IpAddress *s)
{
SetEmpty();
operator=(s);
}
-IpAddress& IpAddress::operator =(IPAddress *s)
+IpAddress& IpAddress::operator =(IpAddress *s)
{
IpAddress *tmp = NULL;
if (!s) return *this;
}
int
-IpIntercept::NatLookup(int fd, const IpAddress &me, const IpAddress &peer, IPAddress &client, IPAddress &dst)
+IpIntercept::NatLookup(int fd, const IpAddress &me, const IpAddress &peer, IpAddress &client, IpAddress &dst)
{
#if IPF_TRANSPARENT /* --enable-ipf-transparent */
client = me;
~IpIntercept() {};
/** Perform NAT lookups */
- int NatLookup(int fd, const IpAddress &me, const IpAddress &peer, IPAddress &client, IPAddress &dst);
+ int NatLookup(int fd, const IpAddress &me, const IpAddress &peer, IpAddress &client, IpAddress &dst);
#if LINUX_TPROXY2
// only relevant to TPROXY v2 connections.
../tests/testMain.cc
testIpAddress_LDADD= \
libip.la \
+ -L$(top_builddir)/lib -lmiscutil \
@SQUID_CPPUNIT_LA@ \
@SQUID_CPPUNIT_LIBS@
testIpAddress_LDFLAGS= $(LIBADD_DL)
#
# Makefile for the Squid Object Cache server
#
-# $Id: Makefile.am,v 1.2 2006/05/11 12:25:39 hno Exp $
-#
# Uncomment and customize the following to suit your needs:
#
AUTOMAKE_OPTIONS = subdir-objects
-INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib/libTrie/include
+INCLUDES = -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include -I$(top_srcdir)/lib/libTrie/include -I$(top_srcdir)/src
INCLUDES += @SQUID_CPPUNIT_INC@
TESTS=$(check_PROGRAMS)
cachemgr__CGIEXT__SOURCES = cachemgr.cc
cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
-LDADD = -L../lib -lmiscutil $(XTRA_LIBS)
+LDADD = ../src/ip/libip.la -L../lib -lmiscutil $(XTRA_LIBS)
EXTRA_DIST = \
cachemgr.conf