source: libpacketdump/libpacketdump.h @ 7af80ba

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 7af80ba 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
Line 
1#ifndef __LIBPACKETDUMP_H__
2#define __LIBPACKETDUMP_H__
3#include "libtrace.h"
4
5#ifdef __cplusplus
6extern "C" {
7#endif
8
9void trace_hexdump_packet(libtrace_packet_t *packet);
10void trace_dump_packet(libtrace_packet_t *packet);
11void decode_next(const char *packet,int len,const char *proto_name,int type);
12
13void decode(int link_type, const char *pkt, unsigned len);
14
15#ifdef __cplusplus
16}
17#endif
18
19#endif
Note: See TracBrowser for help on using the repository browser.