Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gcc tcp.c -lpcap -o lsniffer
- In file included from tcp.c:8:
- /usr/include/netinet/ip_icmp.h:92: error: expected specifier-qualifier-list before ‘n_short’
- /usr/include/netinet/ip_icmp.h:99: error: expected specifier-qualifier-list before ‘n_short’
- /usr/include/netinet/ip_icmp.h:121: error: expected specifier-qualifier-list before ‘n_time’
- /usr/include/netinet/ip_icmp.h:126: error: field ‘idi_ip’ has incomplete type
- tcp.c: In function ‘main’:
- tcp.c:46: error: ‘AF_PACKET’ undeclared (first use in this function)
- tcp.c:46: error: (Each undeclared identifier is reported only once
- tcp.c:46: error: for each function it appears in.)
- tcp.c:46: error: ‘ETH_P_ALL’ undeclared (first use in this function)
- tcp.c: In function ‘ProcessPacket’:
- tcp.c:76: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:78: error: dereferencing pointer to incomplete type
- tcp.c: In function ‘print_ethernet_header’:
- tcp.c:112: error: dereferencing pointer to incomplete type
- tcp.c:112: error: dereferencing pointer to incomplete type
- tcp.c:112: error: dereferencing pointer to incomplete type
- tcp.c:112: error: dereferencing pointer to incomplete type
- tcp.c:112: error: dereferencing pointer to incomplete type
- tcp.c:112: error: dereferencing pointer to incomplete type
- tcp.c:113: error: dereferencing pointer to incomplete type
- tcp.c:113: error: dereferencing pointer to incomplete type
- tcp.c:113: error: dereferencing pointer to incomplete type
- tcp.c:113: error: dereferencing pointer to incomplete type
- tcp.c:113: error: dereferencing pointer to incomplete type
- tcp.c:113: error: dereferencing pointer to incomplete type
- tcp.c:114: error: dereferencing pointer to incomplete type
- tcp.c: In function ‘print_ip_header’:
- tcp.c:123: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:124: error: dereferencing pointer to incomplete type
- tcp.c:127: error: dereferencing pointer to incomplete type
- tcp.c:130: error: dereferencing pointer to incomplete type
- tcp.c:134: error: dereferencing pointer to incomplete type
- tcp.c:135: error: dereferencing pointer to incomplete type
- tcp.c:135: error: dereferencing pointer to incomplete type
- tcp.c:136: error: dereferencing pointer to incomplete type
- tcp.c:137: error: dereferencing pointer to incomplete type
- tcp.c:137: error: dereferencing pointer to incomplete type
- tcp.c:137: error: dereferencing pointer to incomplete type
- tcp.c:137: error: dereferencing pointer to incomplete type
- tcp.c:138: error: dereferencing pointer to incomplete type
- tcp.c:138: error: dereferencing pointer to incomplete type
- tcp.c:138: error: dereferencing pointer to incomplete type
- tcp.c:138: error: dereferencing pointer to incomplete type
- tcp.c:142: error: dereferencing pointer to incomplete type
- tcp.c:143: error: dereferencing pointer to incomplete type
- tcp.c:144: error: dereferencing pointer to incomplete type
- tcp.c:144: error: dereferencing pointer to incomplete type
- tcp.c:144: error: dereferencing pointer to incomplete type
- tcp.c:144: error: dereferencing pointer to incomplete type
- tcp.c: In function ‘print_tcp_packet’:
- tcp.c:153: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:154: error: dereferencing pointer to incomplete type
- tcp.c:156: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:158: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:158: error: ‘struct tcphdr’ has no member named ‘doff’
- tcp.c:166: error: ‘struct tcphdr’ has no member named ‘source’
- tcp.c:166: error: ‘struct tcphdr’ has no member named ‘source’
- tcp.c:166: error: ‘struct tcphdr’ has no member named ‘source’
- tcp.c:166: error: ‘struct tcphdr’ has no member named ‘source’
- tcp.c:167: error: ‘struct tcphdr’ has no member named ‘dest’
- tcp.c:167: error: ‘struct tcphdr’ has no member named ‘dest’
- tcp.c:167: error: ‘struct tcphdr’ has no member named ‘dest’
- tcp.c:167: error: ‘struct tcphdr’ has no member named ‘dest’
- tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
- tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
- tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
- tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
- tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
- tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
- tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
- tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
- tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
- tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
- tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
- tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
- tcp.c:170: error: ‘struct tcphdr’ has no member named ‘doff’
- tcp.c:170: error: ‘struct tcphdr’ has no member named ‘doff’
- tcp.c:173: error: ‘struct tcphdr’ has no member named ‘urg’
- tcp.c:174: error: ‘struct tcphdr’ has no member named ‘ack’
- tcp.c:175: error: ‘struct tcphdr’ has no member named ‘psh’
- tcp.c:176: error: ‘struct tcphdr’ has no member named ‘rst’
- tcp.c:177: error: ‘struct tcphdr’ has no member named ‘syn’
- tcp.c:178: error: ‘struct tcphdr’ has no member named ‘fin’
- tcp.c:179: error: ‘struct tcphdr’ has no member named ‘window’
- tcp.c:179: error: ‘struct tcphdr’ has no member named ‘window’
- tcp.c:179: error: ‘struct tcphdr’ has no member named ‘window’
- tcp.c:179: error: ‘struct tcphdr’ has no member named ‘window’
- tcp.c:180: error: ‘struct tcphdr’ has no member named ‘check’
- tcp.c:180: error: ‘struct tcphdr’ has no member named ‘check’
- tcp.c:180: error: ‘struct tcphdr’ has no member named ‘check’
- tcp.c:180: error: ‘struct tcphdr’ has no member named ‘check’
- tcp.c:181: error: ‘struct tcphdr’ has no member named ‘urg_ptr’
- tcp.c:190: error: ‘struct tcphdr’ has no member named ‘doff’
- tcp.c: In function ‘print_udp_packet’:
- tcp.c:203: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:204: error: dereferencing pointer to incomplete type
- tcp.c:206: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:208: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:215: error: ‘struct udphdr’ has no member named ‘source’
- tcp.c:215: error: ‘struct udphdr’ has no member named ‘source’
- tcp.c:215: error: ‘struct udphdr’ has no member named ‘source’
- tcp.c:215: error: ‘struct udphdr’ has no member named ‘source’
- tcp.c:216: error: ‘struct udphdr’ has no member named ‘dest’
- tcp.c:216: error: ‘struct udphdr’ has no member named ‘dest’
- tcp.c:216: error: ‘struct udphdr’ has no member named ‘dest’
- tcp.c:216: error: ‘struct udphdr’ has no member named ‘dest’
- tcp.c:217: error: ‘struct udphdr’ has no member named ‘len’
- tcp.c:217: error: ‘struct udphdr’ has no member named ‘len’
- tcp.c:217: error: ‘struct udphdr’ has no member named ‘len’
- tcp.c:217: error: ‘struct udphdr’ has no member named ‘len’
- tcp.c:218: error: ‘struct udphdr’ has no member named ‘check’
- tcp.c:218: error: ‘struct udphdr’ has no member named ‘check’
- tcp.c:218: error: ‘struct udphdr’ has no member named ‘check’
- tcp.c:218: error: ‘struct udphdr’ has no member named ‘check’
- tcp.c: In function ‘print_icmp_packet’:
- tcp.c:239: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:240: error: dereferencing pointer to incomplete type
- tcp.c:242: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:244: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
- tcp.c:253: error: dereferencing pointer to incomplete type
- tcp.c:255: error: dereferencing pointer to incomplete type
- tcp.c:259: error: dereferencing pointer to incomplete type
- tcp.c:264: error: dereferencing pointer to incomplete type
- tcp.c:265: error: dereferencing pointer to incomplete type
- tcp.c:265: error: dereferencing pointer to incomplete type
- tcp.c:265: error: dereferencing pointer to incomplete type
- tcp.c:265: error: dereferencing pointer to incomplete type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement