19 lines
396 B
C
19 lines
396 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
// return 0: success
|
|
// return -1: failed
|
|
int packet_dump_pcap(const struct packet *pkt, const char *file);
|
|
void packet_dump_hex(const struct packet *pkt, int fd);
|
|
// return number of bytes written
|
|
int packet_dump_str(const struct packet *pkt, char *buff, int size);
|
|
void packet_print(const struct packet *pkt);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|