Ignore:
Timestamp:
05/11/06 11:40:21 (16 years ago)
Author:
Shane Alcock <salcock@…>
Branches:
4.0.1-hotfixes, cachetimestamps, develop, dpdk-ndag, etsilive, getfragoff, help, libtrace4, master, ndag_format, pfring, rc-4.0.1, rc-4.0.2, rc-4.0.3, rc-4.0.4, ringdecrementfix, ringperformance, ringtimestampfixes
Children:
83445f0
Parents:
3fcb8b4
Message:

Fixed segmentation faults when trace_destroy is called on a trace that wasn't successfully created
libdl is now checked for and only linked against if available (BSD's don't have a libdl)
Fixed the libpacketdump .so's to use libtrace's generic protocol headers as well as trace_ether_ntoa
Added missing check for strlcpy
Added a couple of #defines to various tools that needed them under FreeBSD
Removed some needless #includes from the libpacketdump .so's

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/ip_1.cc

    r950d54a r4e65f42  
    22#include <inttypes.h>
    33#include <dlfcn.h>
    4 #include <map>
    54#include "libpacketdump.h"
    6 #include <netinet/ip_icmp.h>
    7 #include <netinet/in.h>
    85
    96#define STRUCT icmp
     
    4542void decode(int link_type,char *packet,int len)
    4643{
    47         struct icmphdr *icmp = (struct icmphdr*)packet;
     44        libtrace_icmp_t *icmp = (libtrace_icmp_t*)packet;
    4845        if (len<1)
    4946                return;
Note: See TracChangeset for help on using the changeset viewer.