mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-22 09:27:04 +00:00
Fix warning about type of arguments of pcap_handler
This commit is contained in:
parent
bb5b88c03a
commit
05e57beb34
1 changed files with 4 additions and 4 deletions
|
@ -87,7 +87,7 @@ int err_exit PROTO_LIST((char *str,int num));
|
||||||
int usage PROTO_LIST((void));
|
int usage PROTO_LIST((void));
|
||||||
int print_version PROTO_LIST((void));
|
int print_version PROTO_LIST((void));
|
||||||
void sig_handler PROTO_LIST((int sig));
|
void sig_handler PROTO_LIST((int sig));
|
||||||
void pcap_cb PROTO_LIST((u_char *ptr,struct pcap_pkthdr *hdr,u_char *data));
|
void pcap_cb PROTO_LIST((u_char *ptr,const struct pcap_pkthdr *hdr,const u_char *data));
|
||||||
int main PROTO_LIST((int argc,char **argv));
|
int main PROTO_LIST((int argc,char **argv));
|
||||||
|
|
||||||
int packet_cnt = 0; // Packet counter used for connection pool cleaning
|
int packet_cnt = 0; // Packet counter used for connection pool cleaning
|
||||||
|
@ -132,8 +132,8 @@ void sig_handler(int sig)
|
||||||
|
|
||||||
void pcap_cb(ptr,hdr,data)
|
void pcap_cb(ptr,hdr,data)
|
||||||
u_char *ptr;
|
u_char *ptr;
|
||||||
struct pcap_pkthdr *hdr;
|
const struct pcap_pkthdr *hdr;
|
||||||
u_char *data;
|
const u_char *data;
|
||||||
{
|
{
|
||||||
n_handler *n;
|
n_handler *n;
|
||||||
int len;
|
int len;
|
||||||
|
@ -240,7 +240,7 @@ void pcap_cb(ptr,hdr,data)
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
network_process_packet(n,&hdr->ts,data,len);
|
network_process_packet(n,(struct timeval *) &hdr->ts,(u_char *)data,len);
|
||||||
|
|
||||||
if(packet_cnt == conn_freq) {
|
if(packet_cnt == conn_freq) {
|
||||||
packet_cnt = 0;
|
packet_cnt = 0;
|
||||||
|
|
Loading…
Reference in a new issue