diff options
author | Jakub Sławiński | 2004-11-19 13:47:43 +0100 |
---|---|---|
committer | Joshua Judson Rosen | 2014-07-17 21:14:58 +0200 |
commit | 63c8258ea8e6a2c03c03549326755aac5e0e1d1d (patch) | |
tree | 93876037747f548269d8639d08b9d2d0bb699ea4 /afclient.c | |
parent | v0.5.5 (diff) | |
download | apf-63c8258ea8e6a2c03c03549326755aac5e0e1d1d.tar.gz |
udp_patch
- Lightly Modified: verbose in client's udp reverse mode
- Fixed: major bug in udp protocol forwarding
Diffstat (limited to 'afclient.c')
-rw-r--r-- | afclient.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 */ } |