From 6424fba52d31b51a7875114c9a8906266810e56e Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Wed, 31 Oct 2018 19:06:30 +0700 Subject: utils.c: use udtrace_sstate_by_fd() --- utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'utils.h') diff --git a/utils.h b/utils.h index f1f52f4..8ac4859 100644 --- a/utils.h +++ b/utils.h @@ -6,6 +6,9 @@ #define LOG(fmt, args ...) \ fprintf(stderr, ">>> UDTRACE: " fmt, ## args) +/* find the state corresponding to a given file descriptor */ +struct sock_state *udtrace_sstate_by_fd(int fd); + /* add a file descriptor from the list of to-be-traced ones */ void udtrace_add_fd(int fd); -- cgit v1.2.3