source: libpacketdump/link_11.c @ 4f55f69

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

More warning fixes -- convert the length to be an unsigned number

  • Property mode set to 100644
File size: 326 bytes
Line 
1#include <sys/types.h>
2#include <netinet/in.h>
3#include <stdio.h>
4#include "libpacketdump.h"
5
6void decode(int link_type,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.