libssh 0.5.4
|
00001 #ifndef PCAP_H_ 00002 #define PCAP_H_ 00003 00004 #include "config.h" 00005 #include "libssh/libssh.h" 00006 00007 #ifdef WITH_PCAP 00008 typedef struct ssh_pcap_context_struct* ssh_pcap_context; 00009 00010 int ssh_pcap_file_write_packet(ssh_pcap_file pcap, ssh_buffer packet, uint32_t original_len); 00011 00012 ssh_pcap_context ssh_pcap_context_new(ssh_session session); 00013 void ssh_pcap_context_free(ssh_pcap_context ctx); 00014 00015 enum ssh_pcap_direction{ 00016 SSH_PCAP_DIR_IN, 00017 SSH_PCAP_DIR_OUT 00018 }; 00019 void ssh_pcap_context_set_file(ssh_pcap_context, ssh_pcap_file); 00020 int ssh_pcap_context_write(ssh_pcap_context,enum ssh_pcap_direction direction, void *data, 00021 uint32_t len, uint32_t origlen); 00022 00023 00024 #endif /* WITH_PCAP */ 00025 #endif /* PCAP_H_ */ 00026 /* vim: set ts=2 sw=2 et cindent: */