4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change
on this file since 7ecfe7f was
09d3bef,
checked in by Perry Lorier <perry@…>, 16 years ago
|
Renamed to .c
|
-
Property mode set to
100644
|
File size:
409 bytes
|
Line | |
---|
1 | #include <netinet/in.h> |
---|
2 | #include <stdio.h> |
---|
3 | #include <inttypes.h> |
---|
4 | #include <dlfcn.h> |
---|
5 | #include "libpacketdump.h" |
---|
6 | |
---|
7 | void decode(int link_type,char *packet,int len) |
---|
8 | { |
---|
9 | printf(" Legacy PoS:"); |
---|
10 | if (len>=4) |
---|
11 | printf(" %08x\n",*(uint32_t *)packet); |
---|
12 | else { |
---|
13 | printf("[|Truncated]\n"); |
---|
14 | return; |
---|
15 | } |
---|
16 | if (len>4) { |
---|
17 | decode_next(packet+4,len-4,"eth",2048); |
---|
18 | } |
---|
19 | else { |
---|
20 | printf("[|Truncated]\n"); |
---|
21 | return; |
---|
22 | } |
---|
23 | return; |
---|
24 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.