Skip to content

Instantly share code, notes, and snippets.

@kshimo69
Created March 3, 2012 14:21
Show Gist options
  • Save kshimo69/1966433 to your computer and use it in GitHub Desktop.
Save kshimo69/1966433 to your computer and use it in GitHub Desktop.
crashでsocketの中身見る ref: http://qiita.com/items/2977
crash> ps | grep sshd
3475 3642 0 ffff810012598040 IN 0.6 90120 3380 sshd
3642 1 0 ffff81001906f7e0 IN 0.2 62616 1212 sshd
4254 3642 0 ffff81000e60d860 IN 0.6 90120 3376 sshd
crash> net -s 3475
PID: 3475 TASK: ffff810012598040 CPU: 0 COMMAND: "sshd"
FD SOCKET SOCK FAMILY:TYPE SOURCE-PORT DESTINATION-PORT
3 ffff81000f182800 ffff81000ecbb380 INET:STREAM xxx.xxx.xxx.xxx-22 yyy.yyy.yyy.yyy-1523
6 ffff81000ee41840 ffff81000ecbb980 INET:STREAM 127.0.0.1-6010 0.0.0.0-0
crash> struct socket ffff81000f182800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment