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

Comparing ircd-hybrid-7.2/contrib/ip_cloaking.c (file contents):
Revision 698 by michael, Thu Jun 22 09:34:55 2006 UTC vs.
Revision 885 by michael, Wed Oct 31 18:09:24 2007 UTC

# Line 245 | Line 245 | static unsigned long
245   crc32 (const unsigned char *s, unsigned int len)
246   {
247    unsigned int i;
248 <  unsigned long crc32val;
248 >  unsigned long crc32val = 0;
249  
250  crc32val = 0;
250    for (i = 0; i < len; i++)
252  {
251      crc32val = crc32_tab[(crc32val ^ s[i]) & 0xff] ^ (crc32val >> 8);
252 <  }
252 >
253    return crc32val;
254   }
255  
# Line 394 | Line 392 | set_vhost(struct Client *client_p, struc
392    make_virthost(target_p->host, target_p->sockhost, target_p->host);
393  
394    if (IsClient(target_p))
395 <    sendto_server(client_p, source_p, NULL, CAP_ENCAP, NOCAPS, LL_ICLIENT,
395 >    sendto_server(client_p, NULL, CAP_ENCAP, NOCAPS,
396                    ":%s ENCAP * CHGHOST %s %s",
397                    me.name, target_p->name, target_p->host);
398  
399 <    sendto_one(target_p, form_str(RPL_HOSTHIDDEN),
400 <               me.name, target_p->name, target_p->host);
399 >  sendto_one(target_p, form_str(RPL_HOSTHIDDEN),
400 >             me.name, target_p->name, target_p->host);
401   }
402  
403   static void *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines