/[cvs]/eggdrop1.8/src/net.c
ViewVC logotype

Diff of /eggdrop1.8/src/net.c

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

revision 1.2 by pseudo, Thu Aug 5 18:12:05 2010 UTC revision 1.3 by pseudo, Mon Aug 23 21:27:40 2010 UTC
# Line 627  int getdccaddr(sockname_t *addr, char *s Line 627  int getdccaddr(sockname_t *addr, char *s
627      if (IN6_IS_ADDR_V4MAPPED(&r->addr.s6.sin6_addr) ||      if (IN6_IS_ADDR_V4MAPPED(&r->addr.s6.sin6_addr) ||
628          IN6_IS_ADDR_UNSPECIFIED(&r->addr.s6.sin6_addr))          IN6_IS_ADDR_UNSPECIFIED(&r->addr.s6.sin6_addr))
629        snprintf(s, l, "%lu", natip[0] ? iptolong(inet_addr(natip)) :        snprintf(s, l, "%lu", natip[0] ? iptolong(inet_addr(natip)) :
630                 ntohl((IP) &r->addr.s6.sin6_addr.s6_addr[12]));                 ntohl(*(IP *) &r->addr.s6.sin6_addr.s6_addr[12]));
631      else      else
632        inet_ntop(AF_INET6, &r->addr.s6.sin6_addr, s, l);        inet_ntop(AF_INET6, &r->addr.s6.sin6_addr, s, l);
633    } else    } else

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

webmaster@eggheads.org
ViewVC Help
Powered by ViewVC 1.1.23