summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-13 07:28:11 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-03-13 07:30:04 +0100
commit8da8b8138e52cdfc364be87477aac2744716fac5 (patch)
treedd7b1a50492fb918e03b135babba85048cec8d0b
parent30bd093b1b4ca422bcdb8a9dd51392cd5b69b982 (diff)
downloadecon-8da8b8138e52cdfc364be87477aac2744716fac5.zip
econ-8da8b8138e52cdfc364be87477aac2744716fac5.tar.gz
econ-8da8b8138e52cdfc364be87477aac2744716fac5.tar.bz2
econserv: Log received commands
-rw-r--r--econserv.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/econserv.c b/econserv.c
index dc46703..be07bef 100644
--- a/econserv.c
+++ b/econserv.c
@@ -131,6 +131,9 @@ handle_input(struct ecs *ecs, char *in, int fd,
msg.msg_iov = ecs->epkt.iov;
msg.msg_iovlen = ARRAY_SIZE(ecs->epkt.iov);
+ fprintf(stderr, "handle_input: %d, udp: %s\n",
+ hdr->commandID, src_addr ? "yes" : "no");
+
switch (hdr->commandID) {
case E_CMD_EASYSEARCH:
case E_CMD_IPSEARCH: