Blame SOURCES/nmap-7.60-udp_remoteaddr.patch

586531
commit e8b73078fd56a4d16ffa9cbb51f43ac75c5f7f1f
586531
Author: nnposter <nnposter@e0a8ed71-7df4-0310-8962-fdc924857419>
586531
Date:   Mon Sep 11 02:33:07 2017 +0000
586531
586531
    Provides more meaningful information about the connecting client when in UDP listening mode. Closes #980
586531
586531
diff --git a/ncat/ncat_listen.c b/ncat/ncat_listen.c
586531
index b047a5866..20b14b7db 100644
586531
--- a/ncat/ncat_listen.c
586531
+++ b/ncat/ncat_listen.c
586531
@@ -898,8 +898,8 @@ static int ncat_listen_dgram(int proto)
586531
             ncat_log_recv(buf, nbytes);
586531
         }
586531
 
586531
-        if (o.debug > 1)
586531
-            logdebug("Valid Connection from %d\n", socket_n);
586531
+        if (o.verbose)
586531
+            loguser("Connection from %s.\n", inet_socktop(&remotess));
586531
 
586531
         conn_inc++;
586531
 
586531
@@ -917,6 +917,7 @@ static int ncat_listen_dgram(int proto)
586531
             struct fdinfo info = { 0 };
586531
 
586531
             info.fd = socket_n;
586531
+            info.remoteaddr = remotess;
586531
             if (o.keepopen)
586531
                 netrun(&info, o.cmdexec);
586531
             else