[Patches] [ undernet-ircu-Patches-1027386 ] .12 forward port--listener port fix

2004-09-13 Thread SourceForge.net
Patches item #1027386, was opened at 2004-09-13 13:41
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=504082aid=1027386group_id=63470

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Kevin L. Mitchell (klmitch)
Assigned to: Entrope (entrope)
Summary: .12 forward port--listener port fix

Initial Comment:
Author: Kev [EMAIL PROTECTED]
Log message:

A listener port must be marked as a server port before
we create the listening socket with inetport()--so that
we can set the right buffer sizes and TOS...

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=504082aid=1027386group_id=63470


[Patches] [CVS] Module ircu2.10: Change committed

2004-09-13 Thread Entrope
Committer  : entrope
CVSROOT: /cvsroot/undernet-ircu
Module : ircu2.10
Commit time: 2004-09-13 18:38:43 UTC

Modified files:
 ChangeLog ircd/listener.c

Log message:

Consolidate duplicated code in add_listener(), and make sure
listener-server is set before calling inetport() on it.

-- diff included --
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.466 ircu2.10/ChangeLog:1.467
--- ircu2.10/ChangeLog:1.466Sun Sep 12 05:57:32 2004
+++ ircu2.10/ChangeLog  Mon Sep 13 11:38:32 2004
@@ -1,3 +1,8 @@
+2004-09-13  Michael Poole [EMAIL PROTECTED]
+
+   * ircd/listener.c (add_listener): Consolidate duplicated code, and
+   make sure listener-server is set before calling inetport() on it.
+
 2004-09-12  Michael Poole [EMAIL PROTECTED]
 
* include/channel.c (mode_parse_upass, mode_parse_apass): Only let
Index: ircu2.10/ircd/listener.c
diff -u ircu2.10/ircd/listener.c:1.23 ircu2.10/ircd/listener.c:1.24
--- ircu2.10/ircd/listener.c:1.23   Sat Sep 11 20:53:44 2004
+++ ircu2.10/ircd/listener.cMon Sep 13 11:38:32 2004
@@ -16,7 +16,7 @@
  *   along with this program; if not, write to the Free Software
  *   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- *  $Id: listener.c,v 1.23 2004/09/12 03:53:44 entrope Exp $
+ *  $Id: listener.c,v 1.24 2004/09/13 18:38:32 entrope Exp $
  */
 #include config.h
 
@@ -256,31 +256,21 @@
!ircd_aton(vaddr, vhost_ip))
   return;
 
-  if ((listener = find_listener(port, vaddr))) {
-/*
- * set active flag and change connect mask here, it's the only thing
- * that can change on a rehash
- */
-listener-active = 1;
-if (mask)
-  ipmask_parse(mask, listener-mask, listener-mask_bits);
-else
-  listener-mask_bits = 0;
-listener-hidden = is_hidden;
-listener-server = is_server;
-return;
-  }
-
-  listener = make_listener(port, vaddr);
+  listener = find_listener(port, vaddr);
+  if (!listener)
+listener = make_listener(port, vaddr);
+  listener-active = 1;
+  listener-hidden = is_hidden;
+  listener-server = is_server;
+  if (mask)
+ipmask_parse(mask, listener-mask, listener-mask_bits);
+  else
+listener-mask_bits = 0;
 
-  if (inetport(listener)) {
-listener-active = 1;
-if (mask)
-  ipmask_parse(mask, listener-mask, listener-mask_bits);
-else
-  listener-mask_bits = 0;
-listener-hidden = is_hidden;
-listener-server = is_server;
+  if (listener-fd = 0) {
+/* If the listener is already open, do not try to re-open. */
+  }
+  else if (inetport(listener)) {
 listener-next   = ListenerPollList;
 ListenerPollList = listener;
   }
--- End of diff ---


[Patches] [CVS] Module ircu2.10: Change committed

2004-09-13 Thread Kevin L. Mitchell
Committer  : klmitch
CVSROOT: /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_07
Commit time: 2004-09-13 18:44:37 UTC

Modified files:
  Tag: u2_10_11_07
 ChangeLog include/patchlevel.h

Log message:

Author: Kev [EMAIL PROTECTED]
Log message:

Bump patchlevel...

-- diff included --
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.130.2.25 ircu2.10/ChangeLog:1.290.2.130.2.26
--- ircu2.10/ChangeLog:1.290.2.130.2.25 Mon Sep 13 09:47:01 2004
+++ ircu2.10/ChangeLog  Mon Sep 13 11:44:26 2004
@@ -1,5 +1,8 @@
 2004-09-13  Kevin L Mitchell  [EMAIL PROTECTED]
 
+   * include/patchlevel.h (PATCHLEVEL): bump patchlevel (again!),
+   just so we know who's runnin' what...
+
* ircd/listener.c (add_listener): a listener needs to be listed as
a server port listener BEFORE we open the listening port!
 
Index: ircu2.10/include/patchlevel.h
diff -u ircu2.10/include/patchlevel.h:1.10.4.65.2.3 
ircu2.10/include/patchlevel.h:1.10.4.65.2.4
--- ircu2.10/include/patchlevel.h:1.10.4.65.2.3 Sat Sep 11 10:00:33 2004
+++ ircu2.10/include/patchlevel.h   Mon Sep 13 11:44:27 2004
@@ -15,10 +15,10 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  *
- * $Id: patchlevel.h,v 1.10.4.65.2.3 2004/09/11 17:00:33 klmitch Exp $
+ * $Id: patchlevel.h,v 1.10.4.65.2.4 2004/09/13 18:44:27 klmitch Exp $
  *
  */
-#define PATCHLEVEL 07(pre3)
+#define PATCHLEVEL 07(pre4)
 
 #define RELEASE .11.
 
--- End of diff ---


[Patches] [CVS] Module ircu2.10: Change committed

2004-09-13 Thread Kevin L. Mitchell
Committer  : klmitch
CVSROOT: /cvsroot/undernet-ircu
Module : ircu2.10
Branch tags: u2_10_11_07
Commit time: 2004-09-13 18:54:45 UTC

Modified files:
  Tag: u2_10_11_07
 ChangeLog doc/example.conf doc/ircd.conf.sample
 doc/readme.features

Log message:

Author: Kev [EMAIL PROTECTED]
Log message:

Bah, couple of documentation changes...

-- diff included --
Index: ircu2.10/ChangeLog
diff -u ircu2.10/ChangeLog:1.290.2.130.2.26 ircu2.10/ChangeLog:1.290.2.130.2.27
--- ircu2.10/ChangeLog:1.290.2.130.2.26 Mon Sep 13 11:44:26 2004
+++ ircu2.10/ChangeLog  Mon Sep 13 11:54:34 2004
@@ -1,5 +1,14 @@
 2004-09-13  Kevin L Mitchell  [EMAIL PROTECTED]
 
+   * doc/readme.features: update feature name--forgotten in a prior
+   commit
+
+   * doc/ircd.conf.sample: update feature name--forgotten in a prior
+   commit
+
+   * doc/example.conf: update feature name--forgotten in a prior
+   commit
+
* include/patchlevel.h (PATCHLEVEL): bump patchlevel (again!),
just so we know who's runnin' what...
 
Index: ircu2.10/doc/example.conf
diff -u ircu2.10/doc/example.conf:1.15.2.10.2.1 ircu2.10/doc/example.conf:1.15.2.10.2.2
--- ircu2.10/doc/example.conf:1.15.2.10.2.1 Sat Sep 11 09:23:40 2004
+++ ircu2.10/doc/example.conf   Mon Sep 13 11:54:35 2004
@@ -585,6 +585,7 @@
 # F:HIS_STATS_z:TRUE
 # F:HIS_WHOIS_SERVERNAME:TRUE
 # F:HIS_WHOIS_IDLETIME:TRUE
+# F:HIS_WHOIS_LOCALCHAN:TRUE
 # F:HIS_WHO_SERVERNAME:TRUE
 # F:HIS_WHO_HOPCOUNT:TRUE
 # F:HIS_BANWHO:TRUE
@@ -592,7 +593,6 @@
 # F:HIS_REWRITE:TRUE
 # F:HIS_REMOTE:1
 # F:HIS_NETSPLIT:TRUE
-# F:HIS_LOCAL_CHAN_WHOIS:TRUE
 # F:HIS_SERVERNAME:*.undernet.org
 # F:HIS_SERVERINFO:The Undernet Underworld
 # F:HIS_URLSERVERS:http://www.undernet.org/servers.php;
Index: ircu2.10/doc/ircd.conf.sample
diff -u ircu2.10/doc/ircd.conf.sample:1.1.2.3.8.1 
ircu2.10/doc/ircd.conf.sample:1.1.2.3.8.2
--- ircu2.10/doc/ircd.conf.sample:1.1.2.3.8.1   Sat Sep 11 09:23:41 2004
+++ ircu2.10/doc/ircd.conf.sample   Mon Sep 13 11:54:35 2004
@@ -554,6 +554,7 @@
 #F:HIS_STATS_z:TRUE
 #F:HIS_WHOIS_SERVERNAME:TRUE
 #F:HIS_WHOIS_IDLETIME:TRUE
+#F:HIS_WHOIS_LOCALCHAN:TRUE
 #F:HIS_WHO_SERVERNAME:TRUE
 #F:HIS_WHO_HOPCOUNT:TRUE
 #F:HIS_BANWHO:TRUE
@@ -561,7 +562,6 @@
 #F:HIS_REWRITE:TRUE
 #F:HIS_REMOTE:1
 #F:HIS_NETSPLIT:TRUE
-#F:HIS_LOCAL_CHAN_WHOIS:TRUE
 #F:HIS_SERVERNAME:*.undernet.org
 #F:HIS_SERVERINFO:The Undernet Underworld
 #F:HIS_URLSERVERS:http://www.undernet.org/servers.php;
Index: ircu2.10/doc/readme.features
diff -u ircu2.10/doc/readme.features:1.2.2.11.2.1 
ircu2.10/doc/readme.features:1.2.2.11.2.2
--- ircu2.10/doc/readme.features:1.2.2.11.2.1   Sat Sep 11 09:23:41 2004
+++ ircu2.10/doc/readme.featuresMon Sep 13 11:54:35 2004
@@ -1044,6 +1044,12 @@
 
 As per UnderNet CFV-165, this removes idle time in replies to /WHOIS.
 
+HIS_WHOIS_LOCALCHAN
+ * Type: boolean
+ * Default: TRUE
+
+As per UnderNet CFV-165, this removes local channels in replies to /WHOIS.
+
 HIS_WHO_SERVERNAME
  * Type: boolean
  * Default: TRUE
@@ -1089,12 +1095,6 @@
 
 As per UnderNet CFV-165, this removes server names in net break sign-offs.
 
-HIS_LOCAL_CHAN_WHOIS
- * Type: boolean
- * Default: TRUE
-
-As per UnderNet CFV-165, this removes local channels in replies to /WHOIS.
-
 HIS_SERVERNAME
  * Type: string
  * Default: *.undernet.org
--- End of diff ---