Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify the code according to chenhengqi's suggestion
No more support timestamp and COMM, procedure as follows: 1. startup UNIX socket server: ```bash [rongtao@bogon ~]$ nc --unixsock ./unix-sock -l ``` 2. start UNIX socket client: ```bash [rongtao@bogon ~]$ nc --unixsock ./unix-sock ``` 3. startup undump.py script ``` [rongtao@bogon study]$ sudo ./undump2.py -p 41147 Tracing PID=41147 UNIX socket packets ... Hit Ctrl-C to end ``` 4. send some packets ``` [rongtao@bogon ~]$ nc --unixsock ./unix-sock abcdefg 1234567890 ``` 5. capture these packets server recv: ``` [rongtao@bogon ~]$ nc --unixsock ./unix-sock -l abcdefg 1234567890 ``` undump.py capture ``` [rongtao@bogon study]$ sudo ./undump2.py -p 41147 Tracing PID=41147 UNIX socket packets ... Hit Ctrl-C to end PID 41147 Recv 8 bytes 61 62 63 64 65 66 67 0a PID 41147 Recv 11 bytes 31 32 33 34 35 36 37 38 39 30 0a ```
- Loading branch information