Author: Kev <klmitch@mit.edu>
[ircu2.10.12-pk.git] / ChangeLog
index 5ccf170b830287683c19a9886a60b855f15a881e..ae328a430479f5ca294e612cd8d178281a0c6a3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,158 @@
+2004-10-18  Kevin L Mitchell  <klmitch@mit.edu>
+
+       * ircd/gline.c (gline_find): unless we're looking for an exact
+       match, we should call match() on hostnames, not ircd_strcmp()
+
+2004-10-17  Michael Poole <mdpoole@troilus.org>
+
+       * include/s_conf.h (ConfItem): Add new field username.  Replace
+       unused field bits with addrbits.
+       (find_conf_exact): Replace user and host arguments with cptr.
+       (find_conf_name, read_tlines, find_restrict): Remove declaration
+       for undefined functions.
+       (conf_parse_userhost): New function.
+
+       * ircd/m_oper.c (m_oper): Update calls to find_conf_exact(): both
+       resolved hostname and IP are matched in one pass now.
+
+       * ircd/s_bsd.c (close_connection): Update call to find_conf_exact().
+
+       * ircd/s_conf.c (conf_parse_userhost): New function.
+       (check_limit_and_attach): Use correct ConfItem field to determine
+       maximum connections per IP.
+       (attach_iline): Replace user@host matching with shorter, clearer
+       matching against username and host/IP fields.
+       (find_conf_exact): Likewise.
+
+       * ircd/ircd_parser.y: Replace assignment to aconf->host for
+       CONF_CLIENT and CONF_OPERATOR with calls the CIDR-aware
+       conf_parse_userhost().  This means CONF_CLIENT ConfItems no longer
+       use the name field or the IP token.  Remove the latter.
+
+       * ircd/ircd_lexer.l: Remove unused token IP.
+
+2004-10-17  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/crule.c (crule_via): Simplify the lookup for the directly
+       connected server name.
+
+2004-10-16  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/class.c: Make find_class() return NULL for unknown classes,
+       rather than returning the start of connClassList.
+
+       * ircd/match.c (parse_ipmask): Translate IPv4 masks as
+       IPv4-compatible addresses.
+       (check_ipmask): Fix comparison of IP masks.
+
+       * ircd/motd.h, ircd/motd.c: Add a new MOTD type, MOTD_IPMASK, that
+       uses CIDR style masks in the hostname field of a Motd block.
+
+2004-10-16  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/numeric.h: Remove the unused RPL_STATMEM and
+       RPL_STATMEMTOT.  Move the RPL_BOUNCE comment to its current
+       value (the former RPL_STATMEM).
+
+       * ircd/s_err.c: Remove format strings for RPL_STATMEM and
+       RPL_STATMEMTOT.
+
+2004-10-16  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/m_server.c: Look up server configuration by name of our
+       directly connected peer rather than the server being introduced.
+
+2004-10-13  Michael Poole <mdpoole@troilus.org>
+
+       * include/channel.h: Delete MODE_LISTED and is_listed().  Replace
+       ListingArgs.chptr with ListingArgs.bucket.  Move declaration of
+       list_next_channels() to..
+
+       * include/hash.h: here, and drop the "nr" argument.
+
+       * ircd/channel.c: Remove redundant scan of local clients for
+       channels being listed.  Delete list_next_channels() function.
+
+       * ircd/hash.c: Add list_next_channels() here, revising to not use
+       MODE_LISTED and to use ListingArgs.bucket instead of chptr.  Also
+       decide when to stop sending RPL_LISTs based on a half-full sendq.
+
+       * ircd/m_burst.c, ircd/s_misc.c: Delete mention of MODE_LISTED.
+
+       * ircd/m_list.c: Delete mention of MODE_LISTED.  Unconditionally
+       call list_next_channels(sptr).
+
+       * ircd/s_bsd.c: Remove the "nr" argument to list_next_channels().
+
+       * ircd/Makefile.in: Update dependencies (for hash.c).
+
+2004-10-13  Michael Poole <mdpoole@troilus.org>
+
+       * ircd/ircd_parser.y: Consistently zero out global variables after
+       they are used (prevents double frees and other problems).
+
+2004-10-12  Michael Poole <mdpoole@troilus.org>
+
+       * include/client.h: Rename FLAGSET_ISSET, _SET, _CLEAR to FlagHas,
+       Set, Clr respectively.  Get rid of FLAG_CHKACCESS and FLAG_LOCAL.
+       Delete con_fd (get from con_socket) and con_port.  Move sentalong
+       from send.c to struct Connection, and cli_lasttime and cli_since
+       from struct Client to struct Connection.  Update cli_*() macros to
+       use con_*(cli_connect(cli)).
+
+       * ircd/client.c: Replace PrivSet() with FlagSet(), PrivClr() with
+       FlagClr(), PrivHas() with FlagHas().
+
+       * ircd/ircd_parser.y: Likewise.
+
+       * ircd/list.c: Remove assignment to cli_local() since it is now a
+       calculated value.
+
+       * ircd/s_bsd.c: Remove uses of cli_port().
+
+       * ircd/s_conf.c: Remove uses of ClearAccess().
+
+       * ircd/send.c: Delete sentalong array and replace with references
+       to con_sentalong().
+
+2004-10-12  Michael Poole <mdpoole@troilus.org>
+
+       * doc/example.conf: Update example config to reflect the changes
+       made in the remainder of this patch.
+
+       * include/list.h: Make make_conf() take a type argument.
+
+       * include/s_conf.h: Delete CONF_LEAF and CONF_HUB.  Add "maximum"
+       and "hub_limit" to ConfItem to compensate.
+
+       * ircd/ircd_lexer.l: Recognize MAXHOPS token.
+
+       * ircd/ircd_parser.y: Get rid of aconf global variable and add
+       hub_limit global variable.  Add MAXHOPS token, and productions
+       inside connectblock to recognize it and hub masks.  Allow maxlinks
+       field in a Client block, rather than overloading password field.
+       Convert serverblock to uworldblock and remove extraneous fields.
+
+       * ircd/m_server.c: Make check_loop_and_lh() look up ConfItem and
+       calculate LHcptr and active_lh_line.  Merge some duplicated code
+       so handling active_lh_line cases is clearer.
+
+       * ircd/s_conf.c: Make make_conf() take a type argument.  Delete
+       CONF_LEAF and CONF_HUB.  Do not overwrite server name with what
+       is specified in the config file.
+
+       * ircd/s_err.c: Remove the unused RPL_STATSNLINE and
+       RPL_STATSHLINE.  Remove useless parameters and format fields from
+       RPL_STATSCLINE, RPL_STATSILINE, RPL_STATSLLINE, RPL_STATSOLINE and
+       RPL_STATSULINE.
+
+       * ircd/s_serv.c: Delete CONF_LEAF and CONF_HUB.
+
+       * ircd/s_stats.c: Get rid of report_array and make
+       stats_configured_links() directly use RPL_STATSxLINE (adding the
+       new fields for Server and Client blocks).  Remove /stats h, since
+       that has no meaning.
+
 2004-10-12  Michael Poole <mdpoole@troilus.org>
 
        * ircd/m_burst.c: Mask off channel modes in a wiped-out channel by