From Red Parakeet, 3 Months ago, written in Bash.
  1. # /tmp/strace ip neigh
  2. execve("/sbin/ip", ["ip", "neigh"], [/* 12 vars */]) = 0
  3. brk(NULL)                               = 0x699000
  4. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd77deba000
  5. access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
  6. open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  7. open("/lib64/tls/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  8. stat("/lib64/tls/x86_64", 0x7ffcf2d31530) = -1 ENOENT (No such file or directory)
  9. open("/lib64/tls/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  10. stat("/lib64/tls", 0x7ffcf2d31530)      = -1 ENOENT (No such file or directory)
  11. open("/lib64/x86_64/libc.so.6", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or directory)
  12. stat("/lib64/x86_64", 0x7ffcf2d31530)   = -1 ENOENT (No such file or directory)
  13. open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
  14. read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\10\2\0\0\0\0\0"..., 832) = 832
  15. fstat(3, {st_mode=S_IFREG|0755, st_size=1697432, ...}) = 0
  16. mmap(NULL, 3803616, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fd77d8f8000
  17. mprotect(0x7fd77da8f000, 2097152, PROT_NONE) = 0
  18. mmap(0x7fd77dc8f000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x197000) = 0x7fd77dc8f000
  19. mmap(0x7fd77dc95000, 14816, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fd77dc95000
  20. close(3)                                = 0
  21. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd77deb9000
  22. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd77deb8000
  23. mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fd77deb7000
  24. arch_prctl(ARCH_SET_FS, 0x7fd77deb8700) = 0
  25. mprotect(0x7fd77dc8f000, 16384, PROT_READ) = 0
  26. mprotect(0x7fd77debb000, 4096, PROT_READ) = 0
  27. getuid()                                = 0
  28. socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE) = 3
  29. bind(3, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 0
  30. getsockname(3, {sa_family=AF_NETLINK, pid=1300, groups=00000000}, [12]) = 0
  31. sendto(3, "\24\0\0\0\22\0\1\3k\240\22]\0\0\0\0\0\0\0\0", 20, 0, {sa_family=AF_NETLINK, pid=0, groups=00000000}, 12) = 20
  32. brk(NULL)                               = 0x699000
  33. brk(0x6bc000)                           = 0x6bc000
  34. recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\320\4\0\0\20\0\2\0k\240\22]\24\5\0\0\0\0\4\3\1\0\0\0I\0\1\0\0\0\0\0"..., 8192}], msg_controllen=0, msg_flags=0}, 0) = 3712
  35. recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"D\5\0\0\20\0\2\0k\240\22]\24\5\0\0\0\0\10\3\4\0\0\0\200\0\0\0\0\0\0\0"..., 8192}], msg_controllen=0, msg_flags=0}, 0) = 1348
  36. recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0k\240\22]\24\5\0\0\0\0\0\0", 8192}], msg_controllen=0, msg_flags=0}, 0) = 20
  37. sendmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(2)=[{"\34\0\0\0\36\0\1\3l\240\22]\0\0\0\0", 16}, {"\0\0\0\0\0\0\0\0\0\0\0\0", 12}], msg_controllen=0, msg_flags=0}, 0) = 28
  38. recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"@\0\0\0\34\0\2\0l\240\22]\24\5\0\0\2\0\0\0\2\0\0\0\1\0\0\1\10\0\1\0"..., 8192}], msg_controllen=0, msg_flags=0}, 0) = 7232
  39. fstat(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 0), ...}) = 0
  40. open("/proc/net/psched", O_RDONLY)      = 4
  41. fstat(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
  42. read(4, "000003e8 00000040 000f4240 00000"..., 1024) = 36
  43. close(4)                                = 0
  44. write(1, "10.32.101.201 dev eth0 lladdr 0 "..., 7310.32.101.201 dev eth0 lladdr 0  ref 1 used 0/1814/0 probes 5 INCOMPLETE
  45. ) = 73
  46. recvmsg(3, {msg_name(12)={sa_family=AF_NETLINK, pid=0, groups=00000000}, msg_iov(1)=[{"\24\0\0\0\3\0\2\0l\240\22]\24\5\0\0\0\0\0\0", 8192}], msg_controllen=0, msg_flags=0}, 0) = 20
  47. exit_group(0)                           = ?
  48. +++ exited with 0 +++
captcha