Added statistics updating and statisics dumping with SIGUSR1.
[silc.git] / apps / silcd / packet_send.c
index 40d303e621b84e7c1626a4210268bd0c18a1ce41..512ee42370873ddc32a9922497a821b3c7646e0e 100644 (file)
@@ -50,8 +50,10 @@ int silc_server_packet_send_real(SilcServer server,
 
   /* Send the packet */
   ret = silc_packet_send(sock, force_send);
-  if (ret != -2)
+  if (ret != -2) {
+    server->stat.packets_sent++;
     return ret;
+  }
 
   /* Mark that there is some outgoing data available for this connection. 
      This call sets the connection both for input and output (the input