4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change
on this file since 6e90062 was
c7062df,
checked in by Shane Alcock <salcock@…>, 11 years ago
|
- Ensure that the decode functions are exported as global symbols for the various libpacketdump shared libraries
|
-
Property mode set to
100644
|
File size:
349 bytes
|
Line | |
---|
1 | #include <sys/types.h> |
---|
2 | #include <netinet/in.h> |
---|
3 | #include <stdio.h> |
---|
4 | #include "libpacketdump.h" |
---|
5 | |
---|
6 | DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len) |
---|
7 | { |
---|
8 | // Ethernet - just raw ethernet frames |
---|
9 | printf(" Legacy: "); |
---|
10 | if (len>=10) { |
---|
11 | decode_next(packet,len,"link",2); |
---|
12 | } |
---|
13 | else { |
---|
14 | printf("[|Truncated]\n"); |
---|
15 | return; |
---|
16 | } |
---|
17 | return; |
---|
18 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.