Changeset c7062df


Ignore:
Timestamp:
12/01/09 09:54:35 (11 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:
cde85f8
Parents:
4325ef8
Message:
  • Ensure that the decode functions are exported as global symbols for the various libpacketdump shared libraries
Location:
libpacketdump
Files:
19 edited

Legend:

Unmodified
Added
Removed
  • libpacketdump/eth_2048.c

    reade363 rc7062df  
    2121#define DISPLAYIP(x,fmt) DISPLAY_EXP(x,fmt,inet_ntoa(*(struct in_addr*)&ip->x))
    2222
    23 void decode(int link_type UNUSED,const char *packet,unsigned len)
     23DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    2424{
    2525        libtrace_ip_t *ip = (libtrace_ip_t*)packet;
  • libpacketdump/eth_2054.c

    reade363 rc7062df  
    7777}
    7878       
    79 void decode(int link_type UNUSED,const char *packet,unsigned len)
     79DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    8080{
    8181        struct arphdr *arp = (struct arphdr*)packet;
  • libpacketdump/eth_33024.c

    reade363 rc7062df  
    2222        } while(0)
    2323
    24 void decode(int link_type UNUSED,const char *packet,unsigned len)
     24DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    2525{
    2626        unsigned int offset=0;
  • libpacketdump/eth_34887.c

    reade363 rc7062df  
    2222        } while(0)
    2323
    24 void decode(int link_type UNUSED,const char *packet,unsigned len)
     24DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    2525{
    2626        unsigned int offset=0;
  • libpacketdump/eth_34916.c

    reade363 rc7062df  
    1515} pppoe_t;
    1616
    17 void decode(int link_type UNUSED,const char *pkt,unsigned len)
     17DLLEXPORT void decode(int link_type UNUSED,const char *pkt,unsigned len)
    1818{
    1919        pppoe_t *pppoe = (pppoe_t *) pkt;
  • libpacketdump/eth_34958.c

    reade363 rc7062df  
    9191}
    9292
    93 void decode(int link_type UNUSED,const char *packet,unsigned len)
     93DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    9494{
    9595        int v;
  • libpacketdump/ip_1.c

    reade363 rc7062df  
    3939};
    4040
    41 void decode(int link_type UNUSED,const char *packet,unsigned len)
     41DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    4242{
    4343        libtrace_icmp_t *icmp = (libtrace_icmp_t*)packet;
  • libpacketdump/ip_132.c

    reade363 rc7062df  
    151151}
    152152
    153 void decode(int link_type UNUSED,const char *packet,unsigned len)
     153DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    154154{
    155155    struct sctp_common_hdr *hdr;
  • libpacketdump/ip_17.c

    reade363 rc7062df  
    2525
    2626
    27 void decode(int link_type UNUSED,const char *packet,unsigned len)
     27DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    2828{
    2929        struct libtrace_udp *udp = (struct libtrace_udp*)packet;
  • libpacketdump/ip_33.c

    reade363 rc7062df  
    4747        };
    4848
    49 void decode(int link_type UNUSED,const char *packet,unsigned len)
     49DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    5050{
    5151        struct dccphdr *dccp = (struct dccphdr*)packet;
  • libpacketdump/ip_47.c

    reade363 rc7062df  
    1111} gre_t;
    1212
    13 void decode(int link_type UNUSED,const char *packet,unsigned len)
     13DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    1414{
    1515        // GRE
  • libpacketdump/ip_6.c

    reade363 rc7062df  
    2020#define DISPLAYIP(x,fmt) DISPLAY_EXP(x,fmt,inet_ntoa(*(struct in_addr*)&tcp->x))
    2121
    22 void decode(int link_type UNUSED,const char *packet,unsigned len)
     22DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    2323{
    2424        unsigned char *pkt = NULL;
  • libpacketdump/link_0.c

    reade363 rc7062df  
    66#include "libpacketdump.h"
    77
    8 void decode(int link_type UNUSED,const char *packet,unsigned len)
     8DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    99{
    1010        printf(" Legacy PoS:");
  • libpacketdump/link_10.c

    reade363 rc7062df  
    55#include "libtrace.h"
    66
    7 void decode(int link_type UNUSED,const char *packet,unsigned len)
     7DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    88{
    99        // ATM
  • libpacketdump/link_11.c

    reade363 rc7062df  
    44#include "libpacketdump.h"
    55
    6 void decode(int link_type UNUSED,const char *packet,unsigned len)
     6DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    77{
    88        // Ethernet - just raw ethernet frames
  • libpacketdump/link_15.c

    reade363 rc7062df  
    1616        while ( (_p - _s) % sizeof(uint16_t)) {_p++; _c++;}
    1717
    18 void decode(int link_type UNUSED,const char *packet,unsigned len)
     18DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    1919{
    2020        uint32_t *ptr;
  • libpacketdump/link_2.c

    reade363 rc7062df  
    77#include "libpacketdump.h"
    88
    9 void decode(int link_type UNUSED,const char *packet,unsigned len)
     9DLLEXPORT void decode(int link_type UNUSED,const char *packet,unsigned len)
    1010{
    1111        char ether_buf[18] = {0, };
  • libpacketdump/link_4.c

    reade363 rc7062df  
    748748}
    749749
    750 void decode(int link_type UNUSED, const char *pkt, unsigned len)
     750DLLEXPORT void decode(int link_type UNUSED, const char *pkt, unsigned len)
    751751{
    752752        ieee80211_frame_control *fc;
  • libpacketdump/link_6.c

    reade363 rc7062df  
    1111#include "libtrace_int.h"
    1212
    13 void decode(int link_type UNUSED,const char *pkt,unsigned len)
     13DLLEXPORT void decode(int link_type UNUSED,const char *pkt,unsigned len)
    1414{
    1515        libtrace_sll_header_t *sll = (libtrace_sll_header_t *) pkt;
Note: See TracChangeset for help on using the changeset viewer.