P
Puneet
hi,
i wrote this structre. after first compilation i am getting "C uses
undefined struct pcap". what it is so.
struct pcap_hdr {
_int16 version_major; /* major version number */
_int16 version_minor; /* minor version number */
_int32 thiszone; /* GMT to local correction */
_int32 sigfigs; /* accuracy of timestamps */
_int32 snaplen; /* max length in octets */
_int32 network; /* data link type */
}pcap;
main(){
int bytes_read;
int magic;
struct pcap C;
i wrote this structre. after first compilation i am getting "C uses
undefined struct pcap". what it is so.
struct pcap_hdr {
_int16 version_major; /* major version number */
_int16 version_minor; /* minor version number */
_int32 thiszone; /* GMT to local correction */
_int32 sigfigs; /* accuracy of timestamps */
_int32 snaplen; /* max length in octets */
_int32 network; /* data link type */
}pcap;
main(){
int bytes_read;
int magic;
struct pcap C;