ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/hostmask.c
(Generate patch)

Comparing:
ircd-hybrid/src/hostmask.c (file contents), Revision 30 by adx, Sun Oct 2 20:03:27 2005 UTC vs.
ircd-hybrid-7.2/src/hostmask.c (file contents), Revision 723 by adx, Sun Jul 16 19:41:33 2006 UTC

# Line 19 | Line 19
19   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307
20   *  USA
21   *
22 < *  $Id: hostmask.c,v 7.105 2005/09/29 06:35:41 metalrock Exp $
22 > *  $Id$
23   */
24  
25   #include "stdinc.h"
# Line 325 | Line 325 | mask_addr(struct irc_ssaddr *ip, int bit
325  
326      mask = ~((1 << (8 - m)) -1 );
327      v6_base_ip->sin6_addr.s6_addr[n] = v6_base_ip->sin6_addr.s6_addr[n] & mask;
328 <    for (i = n + 1; n < 16; i++)
329 <      v6_base_ip->sin6_addr.s6_addr[n] = 0;
328 >    for (i = n + 1; i < 16; i++)
329 >      v6_base_ip->sin6_addr.s6_addr[i] = 0;
330    }
331   #endif
332   }
# Line 419 | Line 419 | get_mask_hash(const char *text)
419    const char *hp = "", *p;
420  
421    for (p = text + strlen(text) - 1; p >= text; p--)
422 <    if (*p == '*' || *p == '?')
422 >    if (IsMWildChar(*p))
423        return hash_text(hp);
424      else if (*p == '.')
425        hp = p + 1;

Comparing:
ircd-hybrid/src/hostmask.c (property svn:keywords), Revision 30 by adx, Sun Oct 2 20:03:27 2005 UTC vs.
ircd-hybrid-7.2/src/hostmask.c (property svn:keywords), Revision 723 by adx, Sun Jul 16 19:41:33 2006 UTC

# Line 1 | Line 1
1 < "Id Revision"
1 > Id Revision

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)