source: libpacketdump/link_11.cc @ ddd01fb

4.0.1-hotfixescachetimestampsdevelopdpdk-ndagetsilivegetfragoffhelplibtrace4ndag_formatpfringrc-4.0.1rc-4.0.2rc-4.0.3rc-4.0.4ringdecrementfixringperformanceringtimestampfixes
Last change on this file since ddd01fb was 3b8a5ef, checked in by Daniel Lawson <dlawson@…>, 15 years ago

I hate shane

  • Property mode set to 100644
File size: 418 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        // Ethernet - just raw ethernet frames
14        printf(" Legacy: ");
15        if (len>=10) {
16                decode_next(packet,len,"link",2);
17        }
18        else {
19                printf("[|Truncated]\n");
20                return;
21        }
22        return;
23}
Note: See TracBrowser for help on using the repository browser.