/*
- * $Id: acl.cc,v 1.20 1996/07/20 04:21:54 wessels Exp $
+ * $Id: acl.cc,v 1.21 1996/07/20 04:22:21 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
int aclMatchAcl(acl, checklist)
struct _acl *acl;
- aclCheck_t *checklist;
+ aclCheck_t *checklist;
{
request_t *r = checklist->request;
struct hostent *hp = NULL;
for (k = 0; *(hp->h_addr_list + k); k++) {
xmemcpy(&checklist->dst_addr.s_addr,
*(hp->h_addr_list + k),
- hp->h_length);
+ hp->h_length);
if (aclMatchIp(acl->data, checklist->dst_addr))
return 1;
}
/*
- * $Id: comm.cc,v 1.42 1996/07/20 03:37:43 wessels Exp $
+ * $Id: comm.cc,v 1.43 1996/07/20 04:22:23 wessels Exp $
*
* DEBUG: section 5 Socket Functions
* AUTHOR: Harvest Derived
rw_complete_handler *handler;
void *handler_data;
int handle_immed;
- void (*free)(void *);
+ void (*free) (void *);
};
/* GLOBAL */
conn->openned = 0;
RWStateCallbackAndFree(fd, conn->rwstate, COMM_ERROR);
comm_set_fd_lifetime(fd, -1); /* invalidate the lifetime */
- fdstat_close(fd); /* update fdstat */
- while ((ch = conn->close_handler)) { /* Call close handlers */
+ fdstat_close(fd); /* update fdstat */
+ while ((ch = conn->close_handler)) { /* Call close handlers */
conn->close_handler = ch->next;
ch->handler(fd, ch->data);
safe_free(ch);
* called by comm_select(). */
debug(5, len == 0 ? 2 : 1, "commHandleRead: FD %d: read failure: %s\n",
fd, len == 0 ? "connection closed" : xstrerror());
- fd_table[fd].rwstate = NULL; /* handler may issue new read */
+ fd_table[fd].rwstate = NULL; /* handler may issue new read */
RWStateCallbackAndFree(fd, state, COMM_ERROR);
return COMM_ERROR;
}
int timeout;
rw_complete_handler *handler;
void *handler_data;
- void (*free)(void *);
+ void (*free) (void *);
{
RWStateData *state = NULL;
/*
- * $Id: ftp.cc,v 1.46 1996/07/20 03:16:50 wessels Exp $
+ * $Id: ftp.cc,v 1.47 1996/07/20 04:22:24 wessels Exp $
*
* DEBUG: section 9 File Transfer Protocol (FTP)
* AUTHOR: Harvest Derived
len = read(fd, buf, SQUID_TCP_SO_RCVBUF);
debug(9, 5, "ftpReadReply: FD %d, Read %d bytes\n", fd, len);
if (len > 0) {
- IOStats.Ftp.reads++;
+ IOStats.Ftp.reads++;
for (clen = len - 1, bin = 0; clen; bin++)
clen >>= 1;
IOStats.Ftp.read_hist[bin]++;
/*
- * $Id: http.cc,v 1.64 1996/07/20 03:16:51 wessels Exp $
+ * $Id: http.cc,v 1.65 1996/07/20 04:22:25 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
debug(11, 5, "httpReadReply: FD %d: len %d.\n", fd, len);
comm_set_fd_lifetime(fd, 86400); /* extend after good read */
if (len > 0) {
- IOStats.Http.reads++;
+ IOStats.Http.reads++;
for (clen = len - 1, bin = 0; clen; bin++)
clen >>= 1;
IOStats.Http.read_hist[bin]++;
/*
- * $Id: ssl.cc,v 1.7 1996/07/20 03:16:55 wessels Exp $
+ * $Id: ssl.cc,v 1.8 1996/07/20 04:22:27 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
30,
sslErrorComplete,
(void *) sslState,
- xfree);
+ xfree);
return COMM_ERROR;
}
debug(26, 5, "sslConnect: client=%d server=%d\n",
30,
sslErrorComplete,
(void *) sslState,
- xfree);
+ xfree);
return COMM_ERROR;
}
sslState = xcalloc(1, sizeof(SslStateData));
/*
- * $Id: tunnel.cc,v 1.7 1996/07/20 03:16:55 wessels Exp $
+ * $Id: tunnel.cc,v 1.8 1996/07/20 04:22:27 wessels Exp $
*
* DEBUG: section 26 Secure Sockets Layer Proxy
* AUTHOR: Duane Wessels
30,
sslErrorComplete,
(void *) sslState,
- xfree);
+ xfree);
return COMM_ERROR;
}
debug(26, 5, "sslConnect: client=%d server=%d\n",
30,
sslErrorComplete,
(void *) sslState,
- xfree);
+ xfree);
return COMM_ERROR;
}
sslState = xcalloc(1, sizeof(SslStateData));