Wireshark-dev: [Wireshark-dev] how to use wireshark source code?
From: "??????????" <[email protected]>
Date: Thu, 27 Mar 2014 17:05:08 +0800
I add a file named peformance.h under wireshark  main directory,

peformance.h
#include <glib.h>

typedef struct peformance_s
{
gfloat time[100];
      gfloat delay[100];
guint32 packetSize[100];
guint32 payload;
guint32 index;
guint32 temp_size;
gfloat temp_time;
}peformance;
extern peformance* peformance_test;

then I modify the /epan/dissectors/packet-ieee80211.c,
#include "../../peformance.h"

then define the struct variable,
peformance pef_test;
peformance * peformance_test=&pef_test;

peformance_test->index=0;


when i execute "sudo make", it occurs to me one error ,below is the error information:

packet-ieee80211.c:94:30: error: ../../peformance.h: No such file or directory
packet-ieee80211.c:149: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'pef_test'
packet-ieee80211.c:150: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
packet-ieee80211.c:153: error: expected '=', ',', ';', 'asm' or '__attribute__' before '->' token


i want know why and how to fix it?