Hi,
I've have been having issues lately trying to compile a code that use to compile nicely before the upgrade to GCC version 4.x.x
The code is here.
int recvtcp( char *buf, int sizeofbuffer)
{
int datalink;
struct pcap_pkthdr useless;
struct tcppacket
{
struct iphdr ip;
struct tcphdr tcp;
u_char *data;
} *tcppacket;
tcppacket = (struct tcppacket *) pcap_next (pcap_global_descriptor, &useless);
(char *) tcppacket += offset; <--- error while compiling
The error lies in (char *) tcppacket += offset;
Would be great if anyone of you could shed some light on this thanks. The programmer that did the program already left the company....Couldn't get in contact with him. Any help would be much appreciated.
I've have been having issues lately trying to compile a code that use to compile nicely before the upgrade to GCC version 4.x.x
The code is here.
int recvtcp( char *buf, int sizeofbuffer)
{
int datalink;
struct pcap_pkthdr useless;
struct tcppacket
{
struct iphdr ip;
struct tcphdr tcp;
u_char *data;
} *tcppacket;
tcppacket = (struct tcppacket *) pcap_next (pcap_global_descriptor, &useless);
(char *) tcppacket += offset; <--- error while compiling
The error lies in (char *) tcppacket += offset;
Would be great if anyone of you could shed some light on this thanks. The programmer that did the program already left the company....Couldn't get in contact with him. Any help would be much appreciated.