No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
Ok this is so new to me but does anyone have example code that decodes header fields in an IP datagram? or a link to something like the beej's guide....So i need to decode the header from the following example. 0000000 141724 120662 000002 000004 000000 000000 000000 000000 0000020 … |
|
hi,i am new to C i am constantly getting the error "Segmentation fault" and i dont know how to deal with it. I can't find an error in my code. [code=c] #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <string.h> #include <netinet/in.h> #include <arpa/inet.h> #include <pcap.h> int main() { FILE *ifile,*ifile1; … |