libssh  0.5.4
pcap.h
1 #ifndef PCAP_H_
2 #define PCAP_H_
3 
4 #include "config.h"
5 #include "libssh/libssh.h"
6 
7 #ifdef WITH_PCAP
8 typedef struct ssh_pcap_context_struct* ssh_pcap_context;
9 
10 int ssh_pcap_file_write_packet(ssh_pcap_file pcap, ssh_buffer packet, uint32_t original_len);
11 
12 ssh_pcap_context ssh_pcap_context_new(ssh_session session);
13 void ssh_pcap_context_free(ssh_pcap_context ctx);
14 
15 enum ssh_pcap_direction{
16  SSH_PCAP_DIR_IN,
17  SSH_PCAP_DIR_OUT
18 };
19 void ssh_pcap_context_set_file(ssh_pcap_context, ssh_pcap_file);
20 int ssh_pcap_context_write(ssh_pcap_context,enum ssh_pcap_direction direction, void *data,
21  uint32_t len, uint32_t origlen);
22 
23 
24 #endif /* WITH_PCAP */
25 #endif /* PCAP_H_ */
26 /* vim: set ts=2 sw=2 et cindent: */