mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-12 03:00:26 +09:00
Improved pcap dumping support
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#define PCAP_H_
|
||||
|
||||
#include "config.h"
|
||||
#include "libssh/libssh.h"
|
||||
|
||||
#ifdef WITH_PCAP
|
||||
typedef struct ssh_pcap_context_struct* ssh_pcap_context;
|
||||
@@ -10,7 +11,7 @@ typedef struct ssh_pcap_file_struct* ssh_pcap_file;
|
||||
ssh_pcap_file ssh_pcap_file_new(void);
|
||||
int ssh_pcap_file_open(ssh_pcap_file pcap, const char *filename);
|
||||
int ssh_pcap_file_close(ssh_pcap_file pcap);
|
||||
void ssh_pcap_free(ssh_pcap_file pcap);
|
||||
void ssh_pcap_file_free(ssh_pcap_file pcap);
|
||||
|
||||
/* to be removed from here after tests */
|
||||
int ssh_pcap_file_write_packet(ssh_pcap_file pcap, ssh_buffer packet, u_int32_t original_len);
|
||||
@@ -25,6 +26,8 @@ void ssh_pcap_context_set_file(ssh_pcap_context, ssh_pcap_file);
|
||||
int ssh_pcap_context_write(ssh_pcap_context,enum ssh_pcap_direction direction, void *data,
|
||||
u_int32_t len, u_int32_t origlen);
|
||||
|
||||
void ssh_set_pcap_context(ssh_session session, ssh_pcap_context pcap);
|
||||
|
||||
#endif /* WITH_PCAP */
|
||||
#endif /* PCAP_H_ */
|
||||
/* vim: set ts=2 sw=2 et cindent: */
|
||||
|
||||
Reference in New Issue
Block a user