Changeset 7787d72


Ignore:
Timestamp:
08/18/06 17:26:13 (14 years ago)
Author:
Perry Lorier <perry@…>
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:
09d3bef
Parents:
404210e
Message:

Remove C++ dependancies

Location:
libpacketdump
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/link_0.cc

    r4e65f42 r7787d72  
    55#include "libpacketdump.h"
    66
    7 extern "C"
    87void decode(int link_type,char *packet,int len)
    98{
  • libpacketdump/link_10.cc

    r4e65f42 r7787d72  
    66#include "libtrace.h"
    77
    8 extern "C"
    98void decode(int link_type,char *packet,int len)
    109{
     
    1211        printf(" Legacy Framing:");
    1312        if (len>=12) {
    14                 uint16_t type = htons(*(uint16_t*)(packet+sizeof(libtrace_atm_cell)+4));
     13                uint16_t type = htons(*(uint16_t*)(packet+sizeof(libtrace_atm_cell_t)+4));
    1514                printf(" %04x\n",type);
    16                 decode_next(packet+sizeof(libtrace_atm_cell) + 4,
    17                                 len-sizeof(libtrace_atm_cell) -4,
     15                decode_next(packet+sizeof(libtrace_atm_cell_t) + 4,
     16                                len-sizeof(libtrace_atm_cell_t) -4,
    1817                                "eth",type);
    1918        }
  • libpacketdump/link_11.cc

    r4e65f42 r7787d72  
    55#include "libpacketdump.h"
    66
    7 extern "C"
    87void decode(int link_type,char *packet,int len)
    98{
  • libpacketdump/link_2.cc

    r4e65f42 r7787d72  
    66#include "libpacketdump.h"
    77
    8 extern "C"
    98void decode(int link_type,char *packet,int len)
    109{
  • libpacketdump/link_4.cc

    rbd6869b r7787d72  
    3232};
    3333
    34 extern "C"
    3534void decode(int link_type,char *packet,int len)
    3635{
  • libpacketdump/link_6.cc

    rddd01fb r7787d72  
    11#include "libpacketdump.h"
    22
    3 extern "C"
    43void decode(int link_type,char *packet,int len)
    54{
  • libpacketdump/link_9.cc

    r41f22e4 r7787d72  
     1#include "libpacketdump.h"
     2#include "libtrace.h"
    13#include <netinet/in.h>
    24#include <stdio.h>
    35#include <inttypes.h>
    46#include <dlfcn.h>
    5 #include "libpacketdump.h"
    67
    7 extern "C"
    88void decode(int link_type,char *packet,int len)
    99{
     
    1313        if (len>=4) {
    1414                uint16_t type = htons(
    15                                 ((libtrace_pos *)packet)->ether_type);
     15                                ((libtrace_pos_t *)packet)->ether_type);
    1616                printf(" %04x\n",type);
    17                 decode_next(packet+sizeof(libtrace_pos),
    18                                 len-sizeof(libtrace_pos),
     17                decode_next(packet+sizeof(libtrace_pos_t),
     18                                len-sizeof(libtrace_pos_t),
    1919                                "eth",type);
    2020        }
Note: See TracChangeset for help on using the changeset viewer.