diff options
author | Stefano Brivio <sbrivio@redhat.com> | 2021-09-07 11:50:06 +0200 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2021-09-09 15:40:04 +0200 |
commit | 9d19f5bc7398710fa4a5dd7173a1f84879de988e (patch) | |
tree | fde8d458b28c8748caa1357e1e2200fec38a8b1b | |
parent | 3df5debf378a5d4a9cbe3223dcb15dd271991193 (diff) | |
download | passt-9d19f5bc7398710fa4a5dd7173a1f84879de988e.tar passt-9d19f5bc7398710fa4a5dd7173a1f84879de988e.tar.gz passt-9d19f5bc7398710fa4a5dd7173a1f84879de988e.tar.bz2 passt-9d19f5bc7398710fa4a5dd7173a1f84879de988e.tar.lz passt-9d19f5bc7398710fa4a5dd7173a1f84879de988e.tar.xz passt-9d19f5bc7398710fa4a5dd7173a1f84879de988e.tar.zst passt-9d19f5bc7398710fa4a5dd7173a1f84879de988e.zip |
passt: Add epoll event indication and passt/pasta mode in socket debug message
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r-- | passt.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -85,7 +85,9 @@ char *ip_proto_str[IPPROTO_SCTP + 1] = { static void sock_handler(struct ctx *c, union epoll_ref ref, uint32_t events, struct timespec *now) { - debug("%s packet from socket %i", IP_PROTO_STR(ref.proto), ref.s); + debug("%s: %s packet from socket %i (events: 0x%08x)", + c->mode == MODE_PASST ? "passt" : "pasta", + IP_PROTO_STR(ref.proto), ref.s, events); if (!c->no_tcp && ref.proto == IPPROTO_TCP) tcp_sock_handler( c, ref, events, now); |