/[svn]/ircd-hybrid-7.2/contrib/ip_cloaking.c
ViewVC logotype

Diff of /ircd-hybrid-7.2/contrib/ip_cloaking.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 697 by lusky, Sun Oct 2 21:05:51 2005 UTC revision 698 by michael, Thu Jun 22 09:34:55 2006 UTC
# Line 301  make_virthost (char *curr, char *host, c Line 301  make_virthost (char *curr, char *host, c
301    parc  = str2arr(parv, s, ".");    parc  = str2arr(parv, s, ".");
302    parc2 = str2arr(parv2, s2, ".");    parc2 = str2arr(parv2, s2, ".");
303    
304      if (!parc2)
305        return;
306    
307    hash[0] = ((crc32 (parv[3], strlen (parv[3])) + KEY) ^ KEY2) ^ KEY3;    hash[0] = ((crc32 (parv[3], strlen (parv[3])) + KEY) ^ KEY2) ^ KEY3;
308    hash[1] = ((KEY2 ^ crc32 (parv[2], strlen (parv[2]))) + KEY3) ^ KEY;    hash[1] = ((KEY2 ^ crc32 (parv[2], strlen (parv[2]))) + KEY3) ^ KEY;
309    hash[2] = ((crc32 (parv[1], strlen (parv[1])) + KEY3) ^ KEY) ^ KEY2;    hash[2] = ((crc32 (parv[1], strlen (parv[1])) + KEY3) ^ KEY) ^ KEY2;

Legend:
Removed from v.697  
changed lines
  Added in v.698

svnadmin@ircd-hybrid.org
ViewVC Help
Powered by ViewVC 1.1.26