source: libpacketdump/link_11.cc @ 1851624

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since 1851624 was 950d54a, checked in by Perry Lorier <perry@…>, 16 years ago

Add libpacketdump to cvs

  • Property mode set to 100644
File size: 392 bytes
Line 
1#include <netinet/ether.h>
2#include <netinet/in.h>
3#include <net/ethernet.h>
4#include <stdio.h>
5#include <inttypes.h>
6#include <dlfcn.h>
7#include <map>
8#include "libpacketdump.h"
9
10extern "C"
11void decode(int link_type,char *packet,int len)
12{
13        printf(" Legacy Framing: ");
14        if (len>=10) {
15                decode_next(packet+10,len-10,"link",2);
16        }
17        else {
18                printf("[|Truncated]\n");
19                return;
20        }
21        return;
22}
Note: See TracBrowser for help on using the repository browser.