4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change
on this file since 120540d was
ace188a,
checked in by Perry Lorier <perry@…>, 15 years ago
|
MacOS X is more picky about it's order of header files
|
-
Property mode set to
100644
|
File size:
321 bytes
|
Line | |
---|
1 | #include <sys/types.h> |
---|
2 | #include <netinet/in.h> |
---|
3 | #include <stdio.h> |
---|
4 | #include "libpacketdump.h" |
---|
5 | |
---|
6 | void decode(int link_type,char *packet,int 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.