Revision: 14726 Author: adrian.chadd Date: Sun Jul 11 02:15:46 2010 Log: Extend the client_db API a little more.
http://code.google.com/p/lusca-cache/source/detail?r=14726 Modified: /playpen/LUSCA_HEAD_ipv6/src/client_db.c /playpen/LUSCA_HEAD_ipv6/src/client_db.h ======================================= --- /playpen/LUSCA_HEAD_ipv6/src/client_db.c Sun Jul 11 01:35:24 2010 +++ /playpen/LUSCA_HEAD_ipv6/src/client_db.c Sun Jul 11 02:15:46 2010 @@ -161,6 +161,15 @@ } c->last_seen = squid_curtime; } + +int +clientdbEstablished6(sqaddr_t *addr, int delta) +{ + struct in_addr a; + + a = sqinet_get_v4_inaddr(addr, SQADDR_ASSERT_IS_V4); + return clientdbEstablished(a, delta); +} /* * clientdbEstablished() ======================================= --- /playpen/LUSCA_HEAD_ipv6/src/client_db.h Sun Jul 11 01:35:24 2010 +++ /playpen/LUSCA_HEAD_ipv6/src/client_db.h Sun Jul 11 02:15:46 2010 @@ -9,5 +9,6 @@ extern void clientdbDump(StoreEntry *); extern void clientdbFreeMemory(void); extern int clientdbEstablished(struct in_addr, int); +extern int clientdbEstablished6(sqaddr_t *addr, int); #endif -- You received this message because you are subscribed to the Google Groups "lusca-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/lusca-commit?hl=en.
