Advertisement
Guest User

Untitled

a guest
Jun 26th, 2013
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.49 KB | None | 0 0
  1. gcc tcp.c -lpcap -o lsniffer
  2. In file included from tcp.c:8:
  3. /usr/include/netinet/ip_icmp.h:92: error: expected specifier-qualifier-list before ‘n_short’
  4. /usr/include/netinet/ip_icmp.h:99: error: expected specifier-qualifier-list before ‘n_short’
  5. /usr/include/netinet/ip_icmp.h:121: error: expected specifier-qualifier-list before ‘n_time’
  6. /usr/include/netinet/ip_icmp.h:126: error: field ‘idi_ip’ has incomplete type
  7. tcp.c: In function ‘main’:
  8. tcp.c:46: error: ‘AF_PACKET’ undeclared (first use in this function)
  9. tcp.c:46: error: (Each undeclared identifier is reported only once
  10. tcp.c:46: error: for each function it appears in.)
  11. tcp.c:46: error: ‘ETH_P_ALL’ undeclared (first use in this function)
  12. tcp.c: In function ‘ProcessPacket’:
  13. tcp.c:76: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  14. tcp.c:78: error: dereferencing pointer to incomplete type
  15. tcp.c: In function ‘print_ethernet_header’:
  16. tcp.c:112: error: dereferencing pointer to incomplete type
  17. tcp.c:112: error: dereferencing pointer to incomplete type
  18. tcp.c:112: error: dereferencing pointer to incomplete type
  19. tcp.c:112: error: dereferencing pointer to incomplete type
  20. tcp.c:112: error: dereferencing pointer to incomplete type
  21. tcp.c:112: error: dereferencing pointer to incomplete type
  22. tcp.c:113: error: dereferencing pointer to incomplete type
  23. tcp.c:113: error: dereferencing pointer to incomplete type
  24. tcp.c:113: error: dereferencing pointer to incomplete type
  25. tcp.c:113: error: dereferencing pointer to incomplete type
  26. tcp.c:113: error: dereferencing pointer to incomplete type
  27. tcp.c:113: error: dereferencing pointer to incomplete type
  28. tcp.c:114: error: dereferencing pointer to incomplete type
  29. tcp.c: In function ‘print_ip_header’:
  30. tcp.c:123: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  31. tcp.c:124: error: dereferencing pointer to incomplete type
  32. tcp.c:127: error: dereferencing pointer to incomplete type
  33. tcp.c:130: error: dereferencing pointer to incomplete type
  34. tcp.c:134: error: dereferencing pointer to incomplete type
  35. tcp.c:135: error: dereferencing pointer to incomplete type
  36. tcp.c:135: error: dereferencing pointer to incomplete type
  37. tcp.c:136: error: dereferencing pointer to incomplete type
  38. tcp.c:137: error: dereferencing pointer to incomplete type
  39. tcp.c:137: error: dereferencing pointer to incomplete type
  40. tcp.c:137: error: dereferencing pointer to incomplete type
  41. tcp.c:137: error: dereferencing pointer to incomplete type
  42. tcp.c:138: error: dereferencing pointer to incomplete type
  43. tcp.c:138: error: dereferencing pointer to incomplete type
  44. tcp.c:138: error: dereferencing pointer to incomplete type
  45. tcp.c:138: error: dereferencing pointer to incomplete type
  46. tcp.c:142: error: dereferencing pointer to incomplete type
  47. tcp.c:143: error: dereferencing pointer to incomplete type
  48. tcp.c:144: error: dereferencing pointer to incomplete type
  49. tcp.c:144: error: dereferencing pointer to incomplete type
  50. tcp.c:144: error: dereferencing pointer to incomplete type
  51. tcp.c:144: error: dereferencing pointer to incomplete type
  52. tcp.c: In function ‘print_tcp_packet’:
  53. tcp.c:153: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  54. tcp.c:154: error: dereferencing pointer to incomplete type
  55. tcp.c:156: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  56. tcp.c:158: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  57. tcp.c:158: error: ‘struct tcphdr’ has no member named ‘doff’
  58. tcp.c:166: error: ‘struct tcphdr’ has no member named ‘source’
  59. tcp.c:166: error: ‘struct tcphdr’ has no member named ‘source’
  60. tcp.c:166: error: ‘struct tcphdr’ has no member named ‘source’
  61. tcp.c:166: error: ‘struct tcphdr’ has no member named ‘source’
  62. tcp.c:167: error: ‘struct tcphdr’ has no member named ‘dest’
  63. tcp.c:167: error: ‘struct tcphdr’ has no member named ‘dest’
  64. tcp.c:167: error: ‘struct tcphdr’ has no member named ‘dest’
  65. tcp.c:167: error: ‘struct tcphdr’ has no member named ‘dest’
  66. tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
  67. tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
  68. tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
  69. tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
  70. tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
  71. tcp.c:168: error: ‘struct tcphdr’ has no member named ‘seq’
  72. tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
  73. tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
  74. tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
  75. tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
  76. tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
  77. tcp.c:169: error: ‘struct tcphdr’ has no member named ‘ack_seq’
  78. tcp.c:170: error: ‘struct tcphdr’ has no member named ‘doff’
  79. tcp.c:170: error: ‘struct tcphdr’ has no member named ‘doff’
  80. tcp.c:173: error: ‘struct tcphdr’ has no member named ‘urg’
  81. tcp.c:174: error: ‘struct tcphdr’ has no member named ‘ack’
  82. tcp.c:175: error: ‘struct tcphdr’ has no member named ‘psh’
  83. tcp.c:176: error: ‘struct tcphdr’ has no member named ‘rst’
  84. tcp.c:177: error: ‘struct tcphdr’ has no member named ‘syn’
  85. tcp.c:178: error: ‘struct tcphdr’ has no member named ‘fin’
  86. tcp.c:179: error: ‘struct tcphdr’ has no member named ‘window’
  87. tcp.c:179: error: ‘struct tcphdr’ has no member named ‘window’
  88. tcp.c:179: error: ‘struct tcphdr’ has no member named ‘window’
  89. tcp.c:179: error: ‘struct tcphdr’ has no member named ‘window’
  90. tcp.c:180: error: ‘struct tcphdr’ has no member named ‘check’
  91. tcp.c:180: error: ‘struct tcphdr’ has no member named ‘check’
  92. tcp.c:180: error: ‘struct tcphdr’ has no member named ‘check’
  93. tcp.c:180: error: ‘struct tcphdr’ has no member named ‘check’
  94. tcp.c:181: error: ‘struct tcphdr’ has no member named ‘urg_ptr’
  95. tcp.c:190: error: ‘struct tcphdr’ has no member named ‘doff’
  96. tcp.c: In function ‘print_udp_packet’:
  97. tcp.c:203: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  98. tcp.c:204: error: dereferencing pointer to incomplete type
  99. tcp.c:206: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  100. tcp.c:208: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  101. tcp.c:215: error: ‘struct udphdr’ has no member named ‘source’
  102. tcp.c:215: error: ‘struct udphdr’ has no member named ‘source’
  103. tcp.c:215: error: ‘struct udphdr’ has no member named ‘source’
  104. tcp.c:215: error: ‘struct udphdr’ has no member named ‘source’
  105. tcp.c:216: error: ‘struct udphdr’ has no member named ‘dest’
  106. tcp.c:216: error: ‘struct udphdr’ has no member named ‘dest’
  107. tcp.c:216: error: ‘struct udphdr’ has no member named ‘dest’
  108. tcp.c:216: error: ‘struct udphdr’ has no member named ‘dest’
  109. tcp.c:217: error: ‘struct udphdr’ has no member named ‘len’
  110. tcp.c:217: error: ‘struct udphdr’ has no member named ‘len’
  111. tcp.c:217: error: ‘struct udphdr’ has no member named ‘len’
  112. tcp.c:217: error: ‘struct udphdr’ has no member named ‘len’
  113. tcp.c:218: error: ‘struct udphdr’ has no member named ‘check’
  114. tcp.c:218: error: ‘struct udphdr’ has no member named ‘check’
  115. tcp.c:218: error: ‘struct udphdr’ has no member named ‘check’
  116. tcp.c:218: error: ‘struct udphdr’ has no member named ‘check’
  117. tcp.c: In function ‘print_icmp_packet’:
  118. tcp.c:239: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  119. tcp.c:240: error: dereferencing pointer to incomplete type
  120. tcp.c:242: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  121. tcp.c:244: error: invalid application of ‘sizeof’ to incomplete type ‘struct ethhdr’
  122. tcp.c:253: error: dereferencing pointer to incomplete type
  123. tcp.c:255: error: dereferencing pointer to incomplete type
  124. tcp.c:259: error: dereferencing pointer to incomplete type
  125. tcp.c:264: error: dereferencing pointer to incomplete type
  126. tcp.c:265: error: dereferencing pointer to incomplete type
  127. tcp.c:265: error: dereferencing pointer to incomplete type
  128. tcp.c:265: error: dereferencing pointer to incomplete type
  129. tcp.c:265: error: dereferencing pointer to incomplete type
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement