ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/hostmask.c
Revision 5347 - (view) (annotate) - [select for diffs]
Modified Sun Jan 11 12:42:20 2015 UTC (10 years, 7 months ago) by michael
File length: 20920 byte(s)
Diff to previous 4977 , to selected 1376
- Update copyright years

Revision 4977 - (view) (annotate) - [select for diffs]
Modified Thu Dec 4 15:12:24 2014 UTC (10 years, 8 months ago) by michael
File length: 20920 byte(s)
Diff to previous 4915 , to selected 1376
- Style corrections; constifications

Revision 4915 - (view) (annotate) - [select for diffs]
Modified Tue Nov 25 12:37:46 2014 UTC (10 years, 9 months ago) by michael
File length: 20872 byte(s)
Diff to previous 4874 , to selected 1376
- Style corrections; renamed variables

Revision 4874 - (view) (annotate) - [select for diffs]
Modified Tue Nov 11 18:29:49 2014 UTC (10 years, 9 months ago) by michael
File length: 20872 byte(s)
Diff to previous 4850 , to selected 1376
- Const-correctness

Revision 4850 - (view) (annotate) - [select for diffs]
Modified Wed Nov 5 17:06:35 2014 UTC (10 years, 9 months ago) by michael
File length: 20848 byte(s)
Diff to previous 4815 , to selected 1376
- Removed init_host_hash()

Revision 4815 - (view) (annotate) - [select for diffs]
Modified Sat Nov 1 15:28:42 2014 UTC (10 years, 9 months ago) by michael
File length: 20917 byte(s)
Diff to previous 4565 , to selected 1376
- Renamed variables

Revision 4565 - (view) (annotate) - [select for diffs]
Modified Sun Aug 24 10:27:40 2014 UTC (11 years ago) by michael
File length: 20895 byte(s)
Diff to previous 4523 , to selected 1376
- Update GPL 2 license headers

Revision 4523 - (view) (annotate) - [select for diffs]
Modified Tue Aug 19 09:43:38 2014 UTC (11 years ago) by michael
File length: 20891 byte(s)
Diff to previous 4415 , to selected 1376
- Fixed double dlinkDelete() in conf_free()
- Fixed memory leak with server/oper/auth configuration items

Revision 4415 - (view) (annotate) - [select for diffs]
Modified Thu Aug 7 14:09:36 2014 UTC (11 years ago) by michael
File length: 20861 byte(s)
Diff to previous 4340 , to selected 1376
- Removed ipv6 detection. We now assume all systems that run hybrid have
  ipv6 availability and sockaddr_storage.

Revision 4340 - (view) (annotate) - [select for diffs]
Modified Sat Aug 2 16:53:22 2014 UTC (11 years ago) by michael
File length: 21054 byte(s)
Diff to previous 4298 , to selected 1376
- Renamed structures to meet code conventions

Revision 4298 - (view) (annotate) - [select for diffs]
Modified Sun Jul 20 13:51:16 2014 UTC (11 years, 1 month ago) by michael
File length: 21056 byte(s)
Diff to previous 3770 , to selected 1376
- Fixed typos all over the place

Revision 3770 - (view) (annotate) - [select for diffs]
Modified Sun Jun 1 22:42:28 2014 UTC (11 years, 2 months ago) by michael
File length: 21055 byte(s)
Diff to previous 3553 , to selected 1376
- hostmask.c:mask_addr(): ficed compile warnings:

hostmask.c: In function ‘mask_addr’:
hostmask.c:332:35: warning: declaration of ‘__v’ shadows a previous local [-Wshadow]
hostmask.c:332:35: warning: shadowed declaration is here [-Wshadow]
hostmask.c:332:35: warning: declaration of ‘__x’ shadows a previous local [-Wshadow]
hostmask.c:332:35: warning: shadowed declaration is here [-Wshadow]

Revision 3553 - (view) (annotate) - [select for diffs]
Modified Fri May 16 12:35:55 2014 UTC (11 years, 3 months ago) by michael
File length: 21018 byte(s)
Diff to previous 3535 , to selected 1376
- find_address_conf(): constification

Revision 3535 - (view) (annotate) - [select for diffs]
Modified Thu May 15 15:46:25 2014 UTC (11 years, 3 months ago) by michael
File length: 21012 byte(s)
Diff to previous 3504 , to selected 1376
- hostmask.c:delete_one_address_conf(): replaced a DLINK_FOREACH_SAFE with DLINK_FOREACH

Revision 3504 - (view) (annotate) - [select for diffs]
Modified Sat May 10 19:51:29 2014 UTC (11 years, 3 months ago) by michael
File length: 21045 byte(s)
Diff to previous 3469 , to selected 1376
- Renamed MyMalloc() to MyCalloc()

Revision 3469 - (view) (annotate) - [select for diffs]
Modified Sat May 3 17:55:53 2014 UTC (11 years, 3 months ago) by michael
File length: 21045 byte(s)
Diff to previous 3235 , to selected 1376
- hostmask.c: style corrections

Revision 3235 - (view) (annotate) - [select for diffs]
Modified Sat Mar 29 19:34:16 2014 UTC (11 years, 5 months ago) by michael
File length: 21059 byte(s)
Diff to previous 3215 , to selected 1376
- Style corrections all over the place

Revision 3215 - (view) (annotate) - [select for diffs]
Modified Tue Mar 25 19:23:15 2014 UTC (11 years, 5 months ago) by michael
File length: 21077 byte(s)
Diff to previous 3005 , to selected 1376
- Fixed some comments; cleaned up style here and there

Revision 3005 - (view) (annotate) - [select for diffs]
Modified Wed Feb 19 10:40:15 2014 UTC (11 years, 6 months ago) by michael
File length: 21130 byte(s)
Diff to previous 3003 , to selected 1376
- hostmask.c:find_conf_by_address(): removed pointless password = "" assignment.
  match_conf_password() already deals with NULL pointers

Revision 3003 - (view) (annotate) - [select for diffs]
Modified Wed Feb 19 10:05:57 2014 UTC (11 years, 6 months ago) by michael
File length: 21174 byte(s)
Diff to previous 3001 , to selected 1376
- hostmask.c:add_conf_by_address(): fixed assert statement

Revision 3001 - (view) (annotate) - [select for diffs]
Modified Wed Feb 19 10:01:24 2014 UTC (11 years, 6 months ago) by michael
File length: 21160 byte(s)
Diff to previous 2999 , to selected 1376
- hostmask.c: minor cleanups to add_conf_by_address()

Revision 2999 - (view) (annotate) - [select for diffs]
Modified Tue Feb 18 21:25:45 2014 UTC (11 years, 6 months ago) by michael
File length: 21218 byte(s)
Diff to previous 2995 , to selected 1376
- Fix to previous changes in -r2997

Revision 2995 - (view) (annotate) - [select for diffs]
Modified Tue Feb 18 21:16:17 2014 UTC (11 years, 6 months ago) by michael
File length: 21261 byte(s)
Diff to previous 2916 , to selected 1376
- hostmask.c: get rid of this (type & ~0x1) hack

Revision 2916 - (view) (annotate) - [select for diffs]
Modified Sat Jan 25 21:09:18 2014 UTC (11 years, 7 months ago) by michael
File length: 21336 byte(s)
Diff to previous 2898 , to selected 1376
- Clean up all files in include/ (fixed indentation, removed whitespaces/tabs)
- Fixed copyright years

Revision 2898 - (view) (annotate) - [select for diffs]
Modified Wed Jan 22 18:41:24 2014 UTC (11 years, 7 months ago) by michael
File length: 21294 byte(s)
Diff to previous 2894 , to selected 1376
- hostmask.c: constification

Revision 2894 - (view) (annotate) - [select for diffs]
Modified Tue Jan 21 19:11:13 2014 UTC (11 years, 7 months ago) by michael
File length: 21258 byte(s)
Diff to previous 2814 , to selected 1376
- hostmask.c: style cleanups

Revision 2814 - (view) (annotate) - [select for diffs]
Modified Mon Jan 13 20:29:44 2014 UTC (11 years, 7 months ago) by michael
File length: 21242 byte(s)
Diff to previous 2811 , to selected 1376
- hostmask.c:parse_netmask(): optimize for the ipv4 case

Revision 2811 - (view) (annotate) - [select for diffs]
Modified Sun Jan 12 19:39:33 2014 UTC (11 years, 7 months ago) by michael
File length: 21242 byte(s)
Diff to previous 2331 , to selected 1376
- Greatly speedup k-/g-line lookup. Instead of testing every single client against
  every single k-/g-line just check the just added ban against connected clients.

Revision 2331 - (view) (annotate) - [select for diffs]
Modified Sun Jun 23 13:52:17 2013 UTC (12 years, 2 months ago) by michael
File length: 21211 byte(s)
Diff to previous 1786 , to selected 1376
- hostmask.c:hash_text(): removed pointless cast

Revision 1786 - (view) (annotate) - [select for diffs]
Modified Mon Jan 28 19:30:26 2013 UTC (12 years, 6 months ago) by michael
File length: 21226 byte(s)
Diff to previous 1655 , to selected 1376
- Fixed possible core in try_parse_v4_netmask() as reported by bobnomnom

Revision 1655 - (view) (annotate) - [select for diffs]
Modified Fri Nov 16 19:41:52 2012 UTC (12 years, 9 months ago) by michael
File length: 21223 byte(s)
Diff to previous 1652 , to selected 1376
- hostmask.c:find_conf_by_address: fixed logic error which got introduced in -r1652

Revision 1652 - (view) (annotate) - [select for diffs]
Modified Tue Nov 13 20:28:53 2012 UTC (12 years, 9 months ago) by michael
File length: 21222 byte(s)
Diff to previous 1649 , to selected 1376
- changed match() polarity. match() now returns 0 on match and 1 on non-match
  This cleans up several places where function pointers of different matching
  functions like irccmp/strcmp/match are passed to other functions.
- added improved collapse() to match.c

Revision 1649 - (view) (annotate) - [select for diffs]
Modified Sat Nov 10 19:27:13 2012 UTC (12 years, 9 months ago) by michael
File length: 21289 byte(s)
Diff to previous 1644 , to selected 1376
- minor MaskItem structure cleanup

Revision 1644 - (view) (annotate) - [select for diffs]
Modified Tue Nov 6 22:20:16 2012 UTC (12 years, 9 months ago) by michael
File length: 21286 byte(s)
Diff to previous 1632 , to selected 1376
- More config subsystem cleanups

Revision 1632 - (view) (annotate) - [select for diffs]
Modified Sun Nov 4 15:37:10 2012 UTC (12 years, 9 months ago) by michael
File length: 21238 byte(s)
Diff to previous 1628 , to selected 1376
- Initial rewrite of the configuration subsystem

Revision 1628 - (view) (annotate) - [select for diffs]
Modified Thu Nov 1 21:08:56 2012 UTC (12 years, 9 months ago) by michael
File length: 21374 byte(s)
Diff to previous 1622 , to selected 1376
- flesh out new *line database handling
- simplify temporary bans

Revision 1622 - (view) (annotate) - [select for diffs]
Modified Thu Nov 1 13:16:37 2012 UTC (12 years, 9 months ago) by michael
File length: 21538 byte(s)
Diff to previous 1618 , to selected 1376
- klines, dlines, xlines, glines and resv now make use of the new database;
  also, temporary *lines are now stored, so they're not lost after
  restarting the ircd. This also applies to G-lines.

Revision 1618 - (view) (annotate) - [select for diffs]
Modified Tue Oct 30 21:04:38 2012 UTC (12 years, 9 months ago) by michael
File length: 21430 byte(s)
Diff to previous 1592 , to selected 1376
- Made m_globops() and ms_globops() use sendto_realops_flags()
- Added message-type parameter to sendto_realops_flags() which can be one of
  SEND_NOTICE, SEND_GLOBAL, SEND_LOCOPS
- Forward-port -r1617

Revision 1592 - (view) (annotate) - [select for diffs]
Modified Sat Oct 27 21:02:32 2012 UTC (12 years, 10 months ago) by michael
File length: 21417 byte(s)
Diff to previous 1455 , to selected 1376
- Second time's the charm? Moving svnroot/ircd-hybrid-8 to
  svnroot/ircd-hybrid/trunk

Revision 1455 - (view) (annotate) - [select for diffs]
Modified Fri Jun 29 14:16:12 2012 UTC (13 years, 1 month ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 21417 byte(s)
Diff to previous 1426 , to selected 1376
- Minor constification changes

Revision 1426 - (view) (annotate) - [select for diffs]
Modified Wed Jun 6 09:17:12 2012 UTC (13 years, 2 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 21345 byte(s)
Diff to previous 1393 , to selected 1376
- update comments "I: line vs. auth{} block"

Revision 1393 - (view) (annotate) - [select for diffs]
Modified Wed May 2 19:17:37 2012 UTC (13 years, 3 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 21319 byte(s)
Diff to previous 1376
- conf.h: remove CONF_LISTEN_PORT and CONF_EXEMPTKLINE #defines
- hostmask.h: remove HostMaskEntry structure
- hostmask.c: remove find_gline_conf() and find_kline_conf() wrapper functions

Revision 1376 - (view) (annotate) - [selected]
Modified Sun Apr 29 17:08:42 2012 UTC (13 years, 3 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 22292 byte(s)
Diff to previous 1372
- minor cleanups to s_gline, hostmask.c and m_stats.c.
  remove useless NULL assignment of dlink_node pointers.
  the DLINK_FOREACH macros already take care of this.

Revision 1372 - (view) (annotate) - [select for diffs]
Modified Thu Apr 26 19:04:51 2012 UTC (13 years, 4 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 22348 byte(s)
Diff to previous 1371 , to selected 1376
- hostmask.c: move report_Klines() and report_auth() to m_stats.c

Revision 1371 - (view) (annotate) - [select for diffs]
Modified Wed Apr 25 19:32:21 2012 UTC (13 years, 4 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 26638 byte(s)
Diff to previous 1369 , to selected 1376
- "UNKLINE bla@bla.net" may accidentaly remove existing klines such as *@bla.* - Fixed

Revision 1369 - (view) (annotate) - [select for diffs]
Modified Wed Apr 25 19:04:19 2012 UTC (13 years, 4 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 26439 byte(s)
Diff to previous 1367 , to selected 1376
- cleanup temporary k/d/g line code

Revision 1367 - (view) (annotate) - [select for diffs]
Modified Tue Apr 24 21:20:54 2012 UTC (13 years, 4 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 25125 byte(s)
Diff to previous 1343 , to selected 1376
- Cleanup hostmask.c. Make it use dlink list manipulation routines

Revision 1343 - (view) (annotate) - [select for diffs]
Modified Sat Apr 7 18:46:29 2012 UTC (13 years, 4 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 25054 byte(s)
Diff to previous 1309 , to selected 1376
- hostmask.c, rng_mt.c: avoid use of long int types

Revision 1309 - (view) (annotate) - [select for diffs]
Modified Sun Mar 25 11:24:18 2012 UTC (13 years, 5 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 25101 byte(s)
Diff to previous 1298 , to selected 1376
- renaming files:

  ircd_parser.y -> conf_parser.y
  ircd_lexer.l  -> conf_lexer.l
  s_conf.c      -> conf.c
  s_conf.h      -> conf.h
  s_log.c       -> log.c
  s_log.h       -> log.h

Revision 1298 - (view) (annotate) - [select for diffs]
Modified Tue Feb 28 18:51:13 2012 UTC (13 years, 5 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 25103 byte(s)
Diff to previous 1219 , to selected 1376
- fixed style in some places

Revision 1219 - (view) (annotate) - [select for diffs]
Modified Sun Sep 18 09:02:38 2011 UTC (13 years, 11 months ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 25053 byte(s)
Diff to previous 1176 , to selected 1376
- Start cleaning up macros in client.h. Replace several ClientHasSomeCoolFlag()
with simple HasFlag/HasUMode macros.

Revision 1176 - (view) (annotate) - [select for diffs]
Modified Sun Aug 14 11:24:24 2011 UTC (14 years ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 25039 byte(s)
Diff to previous 1156 , to selected 1376
- remove idle-time klines
- rename LocalUser.last to LocalUser.last_privmsg
- m_message.c: reset source_p->last_privmsg even if a client is messaging itself


Revision 1156 - (view) (annotate) - [select for diffs]
Modified Tue Aug 9 20:29:20 2011 UTC (14 years ago) by michael
Original Path: ircd-hybrid-8/src/hostmask.c
File length: 25110 byte(s)
Diff to previous 1155 , to selected 1376
- create ircd-hybrid-8 "branch"

Revision 1155 - (view) (annotate) - [select for diffs]
Modified Tue Aug 9 20:27:45 2011 UTC (14 years ago) by michael
Original Path: ircd-hybrid/src/hostmask.c
File length: 25110 byte(s)
Diff to previous 1029 , to selected 1376
- recreate "trunk"

Revision 1029 - (view) (annotate) - [select for diffs]
Modified Sun Nov 8 13:10:50 2009 UTC (15 years, 9 months ago) by michael
Original Path: ircd-hybrid-7.3/src/hostmask.c
File length: 25110 byte(s)
Diff to previous 1028 , to selected 1376
- branch off trunk to create 7.3 branch
Revision 1028 - (view) (annotate) - [select for diffs]
Modified Sun Nov 8 13:03:38 2009 UTC (15 years, 9 months ago) by michael
Original Path: ircd-hybrid/src/hostmask.c
File length: 25110 byte(s)
Diff to previous 1014 , to selected 1376
- move ircd-hybrid-7.2 to trunk

Revision 1014 - (view) (annotate) - [select for diffs]
Modified Sun Oct 18 15:17:32 2009 UTC (15 years, 10 months ago) by michael
Original Path: ircd-hybrid-7.2/src/hostmask.c
File length: 25110 byte(s)
Diff to previous 1011 , to selected 1376
- show_iline_prefix(): fixed an off-by-one when copying aconf->user.
  strlcpy really isn't hard to understand, is it?

Revision 1011 - (view) (annotate) - [select for diffs]
Modified Fri Sep 18 10:14:09 2009 UTC (15 years, 11 months ago) by michael
Original Path: ircd-hybrid-7.2/src/hostmask.c
File length: 25108 byte(s)
Diff to previous 723 , to selected 1376
- move list manipulation routines from tools.c to list.c
- mem_frob() goes to memory.c
- sort out redundant/unneeded header includes

Revision 723 - (view) (annotate) - [select for diffs]
Modified Sun Jul 16 19:41:33 2006 UTC (19 years, 1 month ago) by adx
Original Path: ircd-hybrid-7.2/src/hostmask.c
File length: 25109 byte(s)
Diff to previous 300 , to selected 1376
+ fixed a bug where auths/klines/glines with digit wildcards (#)
  were not handled correctly

Revision 300 - (view) (annotate) - [select for diffs]
Modified Mon Dec 5 23:13:58 2005 UTC (19 years, 8 months ago) by db
Original Path: ircd-hybrid-7.2/src/hostmask.c
File length: 25116 byte(s)
Diff to previous 34 , to selected 1376
- fixed infinite loop spotted and fixed by
  *runedude* Jeremy Sayres and my email is runedude@runedude.net


Revision 34 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 21:05:51 2005 UTC (19 years, 10 months ago) by lusky
Original Path: ircd-hybrid-7.2/src/hostmask.c
File length: 25116 byte(s)
Diff to previous 33 , to selected 1376
create 7.2 branch, we can move/rename it as needed.


Revision 33 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 20:50:00 2005 UTC (19 years, 10 months ago) by knight
Original Path: ircd-hybrid/src/hostmask.c
File length: 25116 byte(s)
Diff to previous 32 , to selected 1376
- svn:keywords

Revision 32 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 20:41:23 2005 UTC (19 years, 10 months ago) by knight
Original Path: ircd-hybrid/src/hostmask.c
File length: 25116 byte(s)
Diff to previous 31 , to selected 1376
- svn:keywords

Revision 31 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 20:34:05 2005 UTC (19 years, 10 months ago) by knight
Original Path: ircd-hybrid/src/hostmask.c
File length: 25116 byte(s)
Diff to previous 30 , to selected 1376
- Fix svn:keywords

Revision 30 - (view) (annotate) - [select for diffs]
Added Sun Oct 2 20:03:27 2005 UTC (19 years, 10 months ago) by adx
Original Path: ircd-hybrid/src/hostmask.c
File length: 25171 byte(s)
Diff to selected 1376
- imported sources
- can be moved later according to the directory/branching scheme,
  but we need the svn up

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