Guest User

tcpdump socket

a guest
Sep 6th, 2014
314
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. Program output:
  2. $ ./test
  3. ICMP Reply, id=0x400, sequence = 0x100
  4.  
  5.  
  6.  
  7. Tcpdump output:
  8. $ sudo tcpdump -i lo -X -v icmp
  9. tcpdump: listening on lo, link-type EN10MB (Ethernet), capture size 65535 bytes
  10. 15:13:55.398941 IP (tos 0x0, ttl 64, id 37644, offset 0, flags [DF], proto ICMP (1), length 28)
  11. localhost > localhost: ICMP echo request, id 4, seq 1, length 8
  12. 0x0000: 4500 001c 930c 4000 4001 a9d2 7f00 0001 E.....@.@.......
  13. 0x0010: 7f00 0001 0800 f7fa 0004 0001 ............
  14. 15:13:55.398958 IP (tos 0x0, ttl 64, id 37645, offset 0, flags [none], proto ICMP (1), length 28)
  15. localhost > localhost: ICMP echo reply, id 4, seq 1, length 8
  16. 0x0000: 4500 001c 930d 0000 4001 e9d1 7f00 0001 E.......@.......
  17. 0x0010: 7f00 0001 0000 fffa 0004 0001 ............
Add Comment
Please, Sign In to add comment