source: libpacketdump/libpacketdump.h @ 2ec8434

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 2ec8434 was 66ad025, checked in by Shane Alcock <salcock@…>, 11 years ago
  • Fixed bug where libpacketdump doesn't skip past IP options correctly before parsing the next header
  • Added a trace_hexdump_packet() which will dump the entire packet as hex, which can be useful for debugging libpacketdump
  • Use results of trace_get_capture_length() as the length when dumping packets, to avoid issues with an upcoming change
  • Property mode set to 100644
File size: 401 bytes
RevLine 
[950d54a]1#ifndef __LIBPACKETDUMP_H__
2#define __LIBPACKETDUMP_H__
3#include "libtrace.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
[66ad025]9void trace_hexdump_packet(libtrace_packet_t *packet);
[5593016]10void trace_dump_packet(libtrace_packet_t *packet);
[11a7f9c]11void decode_next(const char *packet,int len,const char *proto_name,int type);
[950d54a]12
[11a7f9c]13void decode(int link_type, const char *pkt, unsigned len);
[4f55f69]14
[950d54a]15#ifdef __cplusplus
16}
17#endif
18
19#endif
Note: See TracBrowser for help on using the repository browser.