Ignore:
Timestamp:
05/11/06 11:40:21 (15 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_6.cc

    r010fafb r4e65f42  
    22#include <inttypes.h>
    33#include <dlfcn.h>
    4 #include <map>
    54#include "libpacketdump.h"
    6 #include <netinet/tcp.h>
    7 #include <netinet/in.h>
    85#include <assert.h>
    96#include <netdb.h>
     
    5249void decode(int link_type,char *packet,int len)
    5350{
    54         struct tcphdr *tcp = (struct tcphdr*)packet;
     51        libtrace_tcp_t *tcp = (libtrace_tcp_t *)packet;
    5552        printf(" TCP:");
    5653        if (SAFE(source)) {
Note: See TracChangeset for help on using the changeset viewer.