Skip to content

Instantly share code, notes, and snippets.

@pfsmorigo
Created May 28, 2012 23:14
Show Gist options
  • Save pfsmorigo/2821607 to your computer and use it in GitHub Desktop.
Save pfsmorigo/2821607 to your computer and use it in GitHub Desktop.
segc ex3
[2011][pfsmorigo@beren:~/Dropbox/Study/2012-SEGC/e03]$ gcc extractor_v3.c -lpcap -o extractor
extractor_v3.c:20:0: warning: "ETHER_ADDR_LEN" redefined [enabled by default]
/usr/include/net/ethernet.h:60:0: note: this is the location of the previous definition
extractor_v3.c: In function ‘main’:
extractor_v3.c:123:21: error: ‘struct tcphdr’ has no member named ‘th_off’
extractor_v3.c:129:21: error: ‘struct udphdr’ has no member named ‘uh_ulen’
extractor_v3.c: In function ‘check_proto’:
extractor_v3.c:161:19: warning: assignment makes pointer from integer without a cast [enabled by default]
extractor_v3.c:161:81: warning: assignment makes pointer from integer without a cast [enabled by default]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment