Commit Graph

5 Commits

Author SHA1 Message Date
Vadim Yanitskiy 04ac475170 sock_events.c: also track child file descriptors
In some applications, such as OsmocomBB, a single UNIX socket
can be used by multiple processes (i.e. a server and multiple
clients). Previously this caused a segmentation fault.

Let's modify both sock_ev_accept() and sock_ev_accept4() in order
to handle such connections properly, by using both socket path
and dissector from the parent.
2018-10-31 19:18:41 +07:00
Vadim Yanitskiy 0578d751b1 utils.h: share 'sock_state' struct from 'utils.c' 2018-10-31 19:14:20 +07:00
Vadim Yanitskiy 6424fba52d utils.c: use udtrace_sstate_by_fd() 2018-10-31 19:06:30 +07:00
Harald Welte 75e9578917 prepare for different payload dissectors 2018-03-26 18:21:03 +02:00
Harald Welte 4bbf70b9f3 initial checkin of unix domain socket tracer 2018-03-26 16:46:52 +02:00