Go to the source code of this file.
Compounds | |
struct | S_WCCP1_CLIENT |
Defines the data for a WCCP version 1 client. More... | |
Defines | |
#define | __WCCP_V1_H__ 1 |
Defines the high-level structures for WCCP version 1. | |
Typedefs | |
typedef struct S_WCCP1_CLIENT | WCCP1_CLIENT |
Defines the data for a WCCP version 1 client. | |
Functions | |
struct msghdr* | WCCP1Receive (u_int32 ip, void *packet, int len) |
Process a received WCCP version 1 packet. More... | |
void | WCCP1FreeReply (struct msghdr *reply) |
Frees a reply from WCCP1Receive. More... | |
void | WCCP1Init () |
Initialize WCCP version 1 client database. | |
WCCP1_CLIENT* | WCCP1GetClientByIP (u_int32 ip) |
Get a WCCP version 1 client by IP address. More... | |
WCCP1_CLIENT* | WCCP1AddClient (u_int32 ip) |
Adds a WCCP version 1 client with the given IP address to the list of clients. More... | |
void | WCCP1UpdateChangeNumber () |
Update the global WCCP version 1 change number. More... | |
u_int32 | WCCP1GetChangeNumber () |
Get the current global WCCP version 1 change number. More... | |
u_int32 | WCCP1GetUsableCacheCount () |
Gets a count of usable client caches. More... | |
void | WCCP1GetUsableCacheData (struct iovec *iov) |
Gets the data to be sent for each usable client cache. More... | |
void | WCCP1UpdateHashInfo (u_int32 wccount, u_int32 *ips, WCCP1_HINFO hashes[]) |
Update the hash information with the given IPs and hashes. More... | |
int | WCCP1TimeOutEntries () |
Expire timed-out clints, and get when will the next timeout will be. More... | |
void | WCCP1ClearAllClients () |
Disables all WebCaches and clears the clients database. |
|
Defines the high-level structures for WCCP version 1.
|
|
Defines the data for a WCCP version 1 client.
|
|
Adds a WCCP version 1 client with the given IP address to the list of clients.
|
|
Disables all WebCaches and clears the clients database.
|
|
Frees a reply from WCCP1Receive.
|
|
Get the current global WCCP version 1 change number.
|
|
Get a WCCP version 1 client by IP address.
|
|
Gets a count of usable client caches. Usable caches are those for which reachability has been tested.
|
|
Gets the data to be sent for each usable client cache. Usable caches are those for which reachability has been tested. It fills the given iov vector with pointers to the data element of each client. It is assumed that enough iov entries were provided. This function will typically be called after WCCP1GetUsableCacheCount.
|
|
Initialize WCCP version 1 client database.
|
|
Process a received WCCP version 1 packet. This is the entry point for all WCCP version 1 packet processing. This function does not fill in the msghdr.msg_name and msghdr.msg_namelen, that will be taken care of by the caller. The caller is also responsible of deallocating the reply by calling WCCP1FreeReply.
|
|
Expire timed-out clints, and get when will the next timeout will be.
|
|
Update the global WCCP version 1 change number. According to the specs, the change number must be updated each time a usable cache is added, deleted, or changes it's hash information. |
|
Update the hash information with the given IPs and hashes. The caller must ensure that all the given IPs in the list belong to valid and usable clients before calling this function.
|