Committer  : entrope
CVSROOT    : /cvsroot/undernet-ircu
Module     : ircu2.10
Commit time: 2006-07-27 01:26:01 UTC

Modified files:
     ChangeLog ircd/ircd.c ircd/m_ping.c ircd/m_pong.c

Log message:

Send inter-server PINGs and PONGs with high priority.

---------------------- diff included ----------------------
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.812 ircu2.10/ChangeLog:1.813
--- ircu2.10/ChangeLog:1.812    Wed Jul 26 18:06:45 2006
+++ ircu2.10/ChangeLog  Wed Jul 26 18:25:51 2006
@@ -1,3 +1,12 @@
+2006-07-26  Michael Poole <[EMAIL PROTECTED]>
+
+       * ircd/ircd.c (check_pings): Send AsLL pings as high priority.
+
+       * ircd/m_ping.c (mo_ping): Forward PINGs with high priority.
+       (ms_ping): Likewise.  Send PONG replies with high priority too.
+
+       * ircd/m_pong.c (ms_pong): Forward PONGs with high priority.
+
 2006-07-25  Michael Poole <[EMAIL PROTECTED]>
 
        * doc/example.conf (CRule): Update documentation.
Index: ircu2.10/ircd/ircd.c
diff -u ircu2.10/ircd/ircd.c:1.101 ircu2.10/ircd/ircd.c:1.102
--- ircu2.10/ircd/ircd.c:1.101  Sun Jul 23 11:04:21 2006
+++ ircu2.10/ircd/ircd.c        Wed Jul 26 18:25:51 2006
@@ -19,7 +19,7 @@
  */
 /** @file
  * @brief Entry point and other initialization functions for the daemon.
- * @version $Id: ircd.c,v 1.101 2006/07/23 18:04:21 entrope Exp $
+ * @version $Id: ircd.c,v 1.102 2006/07/27 01:25:51 entrope Exp $
  */
 #include "config.h"
 
@@ -419,8 +419,8 @@
       else
       {
         char *asll_ts = militime_float(NULL);
-        sendcmdto_one(&me, CMD_PING, cptr, "!%s %s %s", asll_ts,
-                      cli_name(cptr), asll_ts);
+        sendcmdto_prio_one(&me, CMD_PING, cptr, "!%s %s %s", asll_ts,
+                           cli_name(cptr), asll_ts);
       }
     }
     
Index: ircu2.10/ircd/m_ping.c
diff -u ircu2.10/ircd/m_ping.c:1.13 ircu2.10/ircd/m_ping.c:1.14
--- ircu2.10/ircd/m_ping.c:1.13 Tue Jul  4 13:37:32 2006
+++ ircu2.10/ircd/m_ping.c      Wed Jul 26 18:25:51 2006
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_ping.c,v 1.13 2006/07/04 20:37:32 entrope Exp $
+ * $Id: m_ping.c,v 1.14 2006/07/27 01:25:51 entrope Exp $
  */
 
 /*
@@ -143,7 +143,7 @@
 
   if (!EmptyString(destination) && 0 != ircd_strcmp(destination, 
cli_name(&me))) {
     if ((acptr = FindServer(destination)))
-      sendcmdto_one(sptr, CMD_PING, acptr, "%C :%s", sptr, destination);
+      sendcmdto_prio_one(sptr, CMD_PING, acptr, "%C :%s", sptr, destination);
     else
       send_reply(sptr, ERR_NOSUCHSERVER, destination);
   }
@@ -214,8 +214,8 @@
   {
     /* AsLL ping, send reply back */
     int diff = atoi(militime_float(parv[3]));
-    sendcmdto_one(&me, CMD_PONG, sptr, "%C %s %s %i %s", &me, origin,
-                  parv[3], diff, militime_float(NULL));
+    sendcmdto_prio_one(&me, CMD_PONG, sptr, "%C %s %s %i %s", &me, origin,
+                       parv[3], diff, militime_float(NULL));
     return 0;
   }
   if (!EmptyString(destination) && 0 != ircd_strcmp(destination, 
cli_name(&me))) {
@@ -223,7 +223,7 @@
       /*
        * Servers can just forward the origin
        */
-      sendcmdto_one(sptr, CMD_PING, acptr, "%s :%s", origin, destination);
+      sendcmdto_prio_one(sptr, CMD_PING, acptr, "%s :%s", origin, destination);
     }
     else {
       /*
@@ -238,7 +238,7 @@
      * NOTE:  sptr is never local so if pong handles numerics everywhere we
      * could send a numeric here.
      */
-    sendcmdto_one(&me, CMD_PONG, sptr, "%C :%s", &me, origin);
+    sendcmdto_prio_one(&me, CMD_PONG, sptr, "%C :%s", &me, origin);
   }
   return 0;
 }
Index: ircu2.10/ircd/m_pong.c
diff -u ircu2.10/ircd/m_pong.c:1.19 ircu2.10/ircd/m_pong.c:1.20
--- ircu2.10/ircd/m_pong.c:1.19 Tue Jul  4 13:37:32 2006
+++ ircu2.10/ircd/m_pong.c      Wed Jul 26 18:25:51 2006
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: m_pong.c,v 1.19 2006/07/04 20:37:32 entrope Exp $
+ * $Id: m_pong.c,v 1.20 2006/07/27 01:25:51 entrope Exp $
  */
 
 #include "config.h"
@@ -99,7 +99,7 @@
   {
     struct Client* acptr;
     if ((acptr = FindClient(destination)))
-      sendcmdto_one(sptr, CMD_PONG, acptr, "%s %s", origin, destination);
+      sendcmdto_prio_one(sptr, CMD_PONG, acptr, "%s %s", origin, destination);
   }
   return 0;
 }
----------------------- End of diff -----------------------
_______________________________________________
Patches mailing list
[email protected]
http://undernet.sbg.org/mailman/listinfo/patches

Reply via email to