From 63c8258ea8e6a2c03c03549326755aac5e0e1d1d Mon Sep 17 00:00:00 2001 From: Jakub Sławiński Date: Fri, 19 Nov 2004 13:47:43 +0100 Subject: udp_patch - Lightly Modified: verbose in client's udp reverse mode - Fixed: major bug in udp protocol forwarding --- afclient.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'afclient.c') diff --git a/afclient.c b/afclient.c index 61ab6b8..710cd8f 100644 --- a/afclient.c +++ b/afclient.c @@ -404,13 +404,13 @@ main(int argc, char **argv) } else { if (n > 0) { - aflog(2, "Sending %d bytes to service (w:%d/%d)", n, + aflog(2, "Sending %d bytes to service (w:%d/%d) (FROM:%s)", n, #ifdef SIOCOUTQ notsent #else buflength - notsent #endif - , buflength); + , buflength, sock_ntop(cliaddr, len, NULL, NULL)); buff[0] = AF_S_MESSAGE; buff[1] = AF_S_LOGIN; buff[2] = AF_S_MESSAGE; @@ -439,7 +439,7 @@ main(int argc, char **argv) aflog(0, "premature quit of the server -> exiting..."); exit(1); } - aflog(2, "Sending %d bytes to user", n); + aflog(2, "Sending %d bytes to user (TO:%s)", n, sock_ntop(cliaddr, addrlen, NULL, NULL)); sendto(contable[0].connfd, buff, n, 0, cliaddr, addrlen); } /* - FD_ISSET MASTER.COMMFD RSET */ } -- cgit v1.1