Posted at

crashでsocketの中身見る

More than 5 years have passed since last update.


crash_sample_socket

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