/*
- * $Id: ACLARP.cc,v 1.15 2005/05/08 06:53:58 hno Exp $
+ * $Id: ACLARP.cc,v 1.16 2005/05/08 09:15:38 serassio Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
bool
ACLARP::empty () const
{
- return data->empty();
+ return data == NULL;
}
/* ==== BEGIN ARP ACL SUPPORT ============================================= */
/*
- * $Id: ACLASN.h,v 1.6 2005/04/18 21:52:41 hno Exp $
+ * $Id: ACLASN.h,v 1.7 2005/05/08 09:15:39 serassio Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
virtual bool match(struct IN_ADDR);
virtual wordlist *dump();
virtual void parse();
+ bool empty() const;
virtual ACLData<struct IN_ADDR> *clone() const;
virtual void prepareForUse();
bool
ACLIP::empty () const
{
- return data->empty();
+ return data == NULL;
}
int
/*
- * $Id: ACLIntRange.cc,v 1.4 2005/05/08 06:36:45 hno Exp $
+ * $Id: ACLIntRange.cc,v 1.5 2005/05/08 09:15:39 serassio Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Robert Collins
bool
ACLIntRange::empty() const
{
- return ranges != NULL;
+ return ranges == NULL;
}
bool
/*
- * $Id: ACLMethodData.cc,v 1.6 2005/05/08 06:36:45 hno Exp $
+ * $Id: ACLMethodData.cc,v 1.7 2005/05/08 09:15:39 serassio Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
bool
ACLMethodData::empty() const
{
- return values != NULL;
+ return values == NULL;
}
ACLData<method_t> *
bool
ACLUserData::empty() const
{
- return names == NULL;
+ return ((names == NULL) && (flags.required != 1));
}
ACLData<char const *> *
/*
- * $Id: asn.cc,v 1.100 2005/04/18 21:52:42 hno Exp $
+ * $Id: asn.cc,v 1.101 2005/05/08 09:15:39 serassio Exp $
*
* DEBUG: section 53 AS Number handling
* AUTHOR: Duane Wessels, Kostas Anagnostakis
return W;
}
+bool
+ACLASN::empty () const
+{
+ return data == NULL;
+}
+
void
ACLASN::parse()
{