diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-13 08:06:26 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-03-13 08:15:26 +0100 |
commit | 2d261dc5ed1738bf1a34d4bc221a6223ffc0bcd1 (patch) | |
tree | 9c85314321b582ea460748f2128a67f61ccea989 | |
parent | 4abab6e64b887ee6d47804b4e899af9485876b68 (diff) | |
download | econ-2d261dc5ed1738bf1a34d4bc221a6223ffc0bcd1.tar.gz econ-2d261dc5ed1738bf1a34d4bc221a6223ffc0bcd1.tar.bz2 econ-2d261dc5ed1738bf1a34d4bc221a6223ffc0bcd1.zip |
econpackt: Log received packets
-rw-r--r-- | econpacket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/econpacket.c b/econpacket.c index adddd8d..7160980 100644 --- a/econpacket.c +++ b/econpacket.c @@ -101,6 +101,8 @@ epkt_read(int fd, struct econ_packet *pkt) return -1; return 0; } + fprintf(stderr, "epkt_read: len.u: %zd, cmd: %d, datasize: %d\n", + len.u, pkt->hdr.commandID, pkt->hdr.datasize); if (len.u != sizeof(struct econ_header) + pkt->hdr.datasize) { fprintf(stderr, "packet has invalid datasize\n"); |