Hey guys I am trying to print out data from an IP header however I seem to always seg fault when I try to print out the "saddr" and "daddr" from the IP Header.
Here's what I've for the saddr output:
Again when I comment this part and the "daddr" part the code works. ThanksCode:fprintf(stderr,"Saddr: %s\n", (char *) inet_ntoa(&ip_header->saddr));