ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/src/s_conf.c
Revision 603 - (view) (annotate) - [select for diffs]
Modified Sun May 14 10:32:26 2006 UTC (17 years, 10 months ago) by michael
File length: 74492 byte(s)
Diff to previous 546
- Made cleanup_pending_glines() an event started off when loading
  the m_gline module
- Removed s_gline.c, s_gline.h and metadata.c

Revision 546 - (view) (annotate) - [select for diffs]
Modified Mon Apr 17 08:15:50 2006 UTC (17 years, 11 months ago) by michael
File length: 74466 byte(s)
Diff to previous 539
- check_client: remove this useless IRCD_SOCKET_ERROR case

Revision 539 - (view) (annotate) - [select for diffs]
Modified Sat Mar 25 10:17:25 2006 UTC (18 years ago) by michael
File length: 74610 byte(s)
Diff to previous 515
- We do not need a local copy of addr in accept_connection()
  Made several functions use the const keyword for read-only
  parameters

Revision 515 - (view) (annotate) - [select for diffs]
Modified Sun Mar 5 09:26:04 2006 UTC (18 years ago) by michael
File length: 74537 byte(s)
Diff to previous 475
- Moved tstats() to m_stats.c and killed s_stats.(c|h)
- Got rid of extra ServerStats pointer
- Killed ms_error which was basically a duplication of m_error

Revision 475 - (view) (annotate) - [select for diffs]
Modified Sat Feb 18 02:34:20 2006 UTC (18 years, 1 month ago) by adx
File length: 74561 byte(s)
Diff to previous 406
+ make it compile, and maybe even run...

Revision 406 - (view) (annotate) - [select for diffs]
Modified Wed Feb 8 10:40:24 2006 UTC (18 years, 1 month ago) by michael
File length: 74693 byte(s)
Diff to previous 405
- Got rid of MAXCONFLINKS.  You can even have a billion connect{} blocks if you want..

Revision 405 - (view) (annotate) - [select for diffs]
Modified Tue Feb 7 19:38:35 2006 UTC (18 years, 1 month ago) by michael
File length: 74828 byte(s)
Diff to previous 398
- Removed now unused llflags parameter from sendto_server()


Revision 398 - (view) (annotate) - [select for diffs]
Modified Tue Feb 7 12:00:21 2006 UTC (18 years, 1 month ago) by michael
File length: 74874 byte(s)
Diff to previous 380
- Ripped out lazylinks as discussed on irc. the main concept wasn't very well
  designed and will be done in a better way some day.  Anyways, they propably
  never worked and were considered bloat by most people.  Good bye!

Revision 380 - (view) (annotate) - [select for diffs]
Modified Sat Jan 28 08:40:37 2006 UTC (18 years, 2 months ago) by michael
File length: 74934 byte(s)
Diff to previous 379
- Typo

Revision 379 - (view) (annotate) - [select for diffs]
Modified Sat Jan 28 08:31:31 2006 UTC (18 years, 2 months ago) by michael
File length: 74929 byte(s)
Diff to previous 376
- More preparations for the new u@h mask storage system, also
  added some small example to report_confitem_types() how to deal
  with it when reporting items


Revision 376 - (view) (annotate) - [select for diffs]
Modified Mon Jan 23 10:07:23 2006 UTC (18 years, 2 months ago) by michael
File length: 73641 byte(s)
Diff to previous 365
- Show the total number of clients in a class in "STATS y|Y"
  output (as per irc2.11 / ircu2.10.12)


Revision 365 - (view) (annotate) - [select for diffs]
Modified Sun Jan 8 20:48:35 2006 UTC (18 years, 2 months ago) by adx
File length: 73615 byte(s)
Diff to previous 357
+ this should fix the bug with low ping timeouts for servers.
keep cleaning up the conf stuff.

Revision 357 - (view) (annotate) - [select for diffs]
Modified Thu Jan 5 16:06:45 2006 UTC (18 years, 2 months ago) by michael
File length: 73599 byte(s)
Diff to previous 271
- Mainly re-wrote split_nuh() to fix a regexp kline bug where we would cut off
  the user portion after 9 chars, but also to be a bit more flexible when we
  have to deal with different user/host name lengths.
- Re-wrote m_capture() to use split_nuh()

Revision 271 - (view) (annotate) - [select for diffs]
Modified Mon Nov 14 21:36:23 2005 UTC (18 years, 4 months ago) by adx
File length: 73565 byte(s)
Diff to previous 263
+ fixes for accept

Revision 263 - (view) (annotate) - [select for diffs]
Modified Sun Nov 13 11:10:37 2005 UTC (18 years, 4 months ago) by adx
File length: 73474 byte(s)
Diff to previous 261
recommitting:
+ added UMODE_BOTS to default oper umodes. From my experience most opers
  don't know/remember about this flag, and it gives them much help in
  hunting floods etc.

Revision 261 - (view) (annotate) - [select for diffs]
Modified Sun Nov 13 10:55:40 2005 UTC (18 years, 4 months ago) by michael
File length: 73461 byte(s)
Diff to previous 256
- Changed cluster{} to use a MatchItem struct

Revision 256 - (view) (annotate) - [select for diffs]
Modified Sat Nov 12 15:56:40 2005 UTC (18 years, 4 months ago) by michael
File length: 73408 byte(s)
Diff to previous 253
- Fixed core caused by memory corruption with cluster{} blocks

Revision 253 - (view) (annotate) - [select for diffs]
Modified Fri Nov 11 21:03:09 2005 UTC (18 years, 4 months ago) by michael
File length: 73381 byte(s)
Diff to previous 252
- ULINES/XLINES are actually MatchItems

Revision 252 - (view) (annotate) - [select for diffs]
Modified Fri Nov 11 20:56:00 2005 UTC (18 years, 4 months ago) by michael
File length: 73388 byte(s)
Diff to previous 221
- Fixed some nice core that showed us the dark side of using unions.
  rxlines (MatchItem) were contantly being trashed due to
  "aconf->status = status;" assignment in make_conf_item()
- Fixed another core in conf_add_server()

Revision 221 - (view) (annotate) - [select for diffs]
Modified Thu Nov 3 15:36:27 2005 UTC (18 years, 4 months ago) by michael
File length: 73343 byte(s)
Diff to previous 200
- Finished WATCH implementation
- Added missing 'return' after register_remote_user() call in
  nick_from_server() which would cause an extra hash_del/strcpy/hash_add
  combination.

Revision 200 - (view) (annotate) - [select for diffs]
Modified Tue Nov 1 11:38:41 2005 UTC (18 years, 4 months ago) by adx
File length: 73193 byte(s)
Diff to previous 196
+ removed invite_ops_only, controlled by +p now
+ sorted ircd.conf:channel{} a bit
+ added newconf framework for channel{}
+ added missing 7.2 RELNOTES


Revision 196 - (view) (annotate) - [select for diffs]
Modified Mon Oct 31 17:03:40 2005 UTC (18 years, 5 months ago) by adx
File length: 73232 byte(s)
Diff to previous 194
- fixed a typo

Revision 194 - (view) (annotate) - [select for diffs]
Modified Thu Oct 27 18:56:46 2005 UTC (18 years, 5 months ago) by michael
File length: 73231 byte(s)
Diff to previous 190
- Fixed several compiletime warnings

Revision 190 - (view) (annotate) - [select for diffs]
Modified Sun Oct 23 22:06:17 2005 UTC (18 years, 5 months ago) by adx
File length: 73316 byte(s)
Diff to previous 173
* prototypes are now prefixed with either nothing or EXTERN
  (meaning it's an ircd.dll API)
* dynamic modules now work on win32.
Revision 173 - (view) (annotate) - [select for diffs]
Modified Fri Oct 21 23:48:44 2005 UTC (18 years, 5 months ago) by michael
File length: 73233 byte(s)
Diff to previous 146
- Fixed problem with IP throttling

Revision 146 - (view) (annotate) - [select for diffs]
Modified Sun Oct 16 15:45:25 2005 UTC (18 years, 5 months ago) by db
File length: 73176 byte(s)
Diff to previous 141
- More conf cleanups, aconf->client count is no longer needed
  as an AccessItem can now be deleted immediately.
- Note bug in s_conf.c with flush_deleted_I_P, it was trying to
  free MatchItems using an AccessConf this bug is in 7.1.4 as well
  as 7.2 flush_deleted_I_P() is no longer needed at all in 7.3
  since AccessItems are removed immediately.
- Fixed a few cores in server establishment, notably ->serv
  has to be allocated sooner since there are no confs to attach.
  make_server() is probably called once too often now.


Revision 141 - (view) (annotate) - [select for diffs]
Modified Sun Oct 16 06:29:10 2005 UTC (18 years, 5 months ago) by db
File length: 75122 byte(s)
Diff to previous 140
- Make ->conf conf_ptr to be consistent in all places.


Revision 140 - (view) (annotate) - [select for diffs]
Modified Sun Oct 16 06:09:42 2005 UTC (18 years, 5 months ago) by db
File length: 75098 byte(s)
Diff to previous 139
- removed free_access_item()
- a few cleanups in s_conf.h as well


Revision 139 - (view) (annotate) - [select for diffs]
Modified Sun Oct 16 06:01:13 2005 UTC (18 years, 5 months ago) by db
File length: 75414 byte(s)
Diff to previous 131
- get rid of map_conf_item and unmap_conf_item
- Use an union in struct ConfItem, but only allocate memory needed


Revision 131 - (view) (annotate) - [select for diffs]
Modified Sat Oct 15 16:22:20 2005 UTC (18 years, 5 months ago) by db
File length: 76098 byte(s)
Diff to previous 130
- Make delete_conf_item() table driven

Still not quite done.


Revision 130 - (view) (annotate) - [select for diffs]
Modified Sat Oct 15 01:47:46 2005 UTC (18 years, 5 months ago) by db
File length: 75452 byte(s)
Diff to previous 129
- removed an unused function find_conf_name() from here
- fixed prototype for verify_access()
- added free_aconf_items() free_match_items()
- removed map_to_list() since this is merely a table lookup now
- cleaned up delete_conf_item() a bit more

Not done  yet...


Revision 129 - (view) (annotate) - [select for diffs]
Modified Fri Oct 14 20:27:45 2005 UTC (18 years, 5 months ago) by michael
File length: 78446 byte(s)
Diff to previous 128
- Don't do any client/oper conf attach at all if any possible

Revision 128 - (view) (annotate) - [select for diffs]
Modified Fri Oct 14 19:29:26 2005 UTC (18 years, 5 months ago) by db
File length: 78562 byte(s)
Diff to previous 126
- still need a temporary copy of the client auth block
  for much the same reasons as a copy of the passwd is needed.
- need a copy of the oper conf for get_oper_name() so reuse no longer
  needed temporary spot for client auth block


Revision 126 - (view) (annotate) - [select for diffs]
Modified Fri Oct 14 02:41:46 2005 UTC (18 years, 5 months ago) by db
File length: 80655 byte(s)
Diff to previous 116
- attach/conf cleanup take 2
- Each client has now one AccessItem for its connect
  stored in localClient->iline
- The corresponding class is now stored in localClient->class

The ramifications of this move are, there is no conf list to traverse
to find the AccessItem, the class is instantly available from the localClient
struct without having to traverse the confs list and indirectly through the
aconf. This speeds up get_sendq etc. functions. As a bonus, at least
4 fewer bytes are used in the Client struct, since a dlink list is 4 words.
It does mean there is no longer a separate conf oper, which leads to the
kludge of patching the clients iline into an oper conf when
a client opers up. I don't think the oper flags are used after the client
is opered, so the patching operation may not be necessary.

- Server confs are stored in ->serv->sconf as before but attaching
  happens much earlier.
- server hub/leaf masks continues to be a dlink list but linked from
  the ->serv which is only allocated for servers.

- cleaned up some comments, added a comment, notably to check_server()
  which badly needed it.
- Pass ClassItem or AccessItem etc. in when it makes more sense than passing
  in struct ConfItem. This simplified and clarified rebuild_cidr_class()

And lo, there was a great rejoicing.


Revision 116 - (view) (annotate) - [select for diffs]
Modified Wed Oct 12 17:11:55 2005 UTC (18 years, 5 months ago) by knight
File length: 80561 byte(s)
Diff to previous 109
- More GCC4 fixes

Revision 109 - (view) (annotate) - [select for diffs]
Modified Wed Oct 12 09:42:59 2005 UTC (18 years, 5 months ago) by michael
File length: 80526 byte(s)
Diff to previous 101
- Forward-ported GDENY core fix

Revision 101 - (view) (annotate) - [select for diffs]
Modified Mon Oct 10 03:52:14 2005 UTC (18 years, 5 months ago) by db
File length: 80530 byte(s)
Diff to previous 99
- First pass at s_conf.c cleanup for attach clients
- attach_conf() is gone replaced with attach_iline()
  Clients/servers have one single I line "attached", i.e. the confs
  list is gone.
- Add attach_leaf_hub()
  Add a leaf or hub mask to the given server, ->serv must exist
  since there can be a list of hub masks and leaf masks, this continues
  to be a dlink list
- Removed redundant find_conf_exact()
  This function can be replaced in all cases with find_exact_name_conf()
  notably because all find_conf_exact did differently was count whether
  an oper conf would cause an already connected client to exceed class limits.
- oper_up() now takes an extra conf pointer pointing to the found
  oper conf, the oper flags are set in the client->iline as necessary
  in oper_up()
- Cleaned up more prototypes that should have been moved from s_conf.h
  to parse_aline.h notably. find_kill() and find_gkill()
- m_stats.c needs more cleanup since memory in attached "confs" is now
  not counted. This should be replaced with iline memory count and
  hub/leaf confs memory count.
  

Revision 99 - (view) (annotate) - [select for diffs]
Modified Sun Oct 9 14:33:36 2005 UTC (18 years, 5 months ago) by michael
File length: 83417 byte(s)
Diff to previous 91
- CHANNELLEN vs. LOCAL_CHANNELLEN fix.  Local JOINs are limited to 50chars whereas
  remote SJOINs/JOINs can be upto 200chars for backwards compatibility.

Revision 91 - (view) (annotate) - [select for diffs]
Modified Sat Oct 8 03:46:09 2005 UTC (18 years, 5 months ago) by db
File length: 83411 byte(s)
Diff to previous 69
- Split out most of the *line *resv stuff into separate file
  parse_aline.c should go eventually into the subdir conf
- removed double -o in Makefile.in in src, this caused compile to fail for me


Revision 69 - (view) (annotate) - [select for diffs]
Modified Tue Oct 4 16:09:51 2005 UTC (18 years, 5 months ago) by adx
File length: 101012 byte(s)
Diff to previous 68
- splitted ircd/libio, all headers connected with libio sources have been
  moved for internal use only. To use libio interface, include "libio.h"
  (which is already done in "stdinc.h")


Revision 68 - (view) (annotate) - [select for diffs]
Modified Tue Oct 4 00:44:29 2005 UTC (18 years, 5 months ago) by adx
File length: 101332 byte(s)
Diff to previous 62
- removed last references to the ircd core, libio is independent now
- to do: split headers

Revision 62 - (view) (annotate) - [select for diffs]
Modified Mon Oct 3 22:23:39 2005 UTC (18 years, 5 months ago) by adx
File length: 101308 byte(s)
Diff to previous 57
- reorganisation goes on, removed external references from libio/mem

Revision 57 - (view) (annotate) - [select for diffs]
Modified Mon Oct 3 12:12:41 2005 UTC (18 years, 5 months ago) by michael
File length: 101288 byte(s)
Diff to previous 33
- Reverted oper_privs_as_string() back to its previous version which is easier
  to maintain when adding new operflags. Even the one who wrote the new version
  introduced a bug by not taking care to keep the oper_flags_table in sync
  with the OPER_FLAGS_* bits.  (which also no one really wants to do ...)
- Updated it to deal with new 'remoteban', 'operwall' and 'operspy' flags

Revision 33 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 20:50:00 2005 UTC (18 years, 5 months ago) by knight
File length: 100366 byte(s)
Diff to previous 32
- svn:keywords

Revision 32 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 20:41:23 2005 UTC (18 years, 5 months ago) by knight
File length: 100366 byte(s)
Diff to previous 31
- svn:keywords

Revision 31 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 20:34:05 2005 UTC (18 years, 5 months ago) by knight
File length: 100366 byte(s)
Diff to previous 30
- Fix svn:keywords

Revision 30 - (view) (annotate) - [select for diffs]
Added Sun Oct 2 20:03:27 2005 UTC (18 years, 5 months ago) by adx
File length: 100413 byte(s)
- imported sources
- can be moved later according to the directory/branching scheme,
  but we need the svn up

(Current path doesn't exist after revision 1586)

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a