* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA
*
- * $Id: s_auth.c 3354 2007-04-03 09:21:31Z nenolod $ */
+ */
/*
* Changes:
* --Bleep Thomas Helvey <tomh@inxpress.net>
*/
#include "stdinc.h"
-#include "config.h"
+#include "defaults.h"
#include "s_auth.h"
#include "s_conf.h"
#include "client.h"
-#include "common.h"
#include "match.h"
#include "ircd.h"
#include "numeric.h"
if(IsAnyDead(auth->client))
return 0;
- family = auth->client->localClient->ip.ss_family;
+ family = GET_SS_FAMILY(&auth->client->localClient->ip);
if((F = rb_socket(family, SOCK_STREAM, 0, "ident")) == NULL)
{
ilog_error("creating auth stream socket");
/* XXX mangle_mapped_sockaddr((struct sockaddr *)&localaddr); */
#ifdef RB_IPV6
- if(localaddr.ss_family == AF_INET6)
+ if(GET_SS_FAMILY(&localaddr) == AF_INET6)
{
auth->lport = ntohs(((struct sockaddr_in6 *)&localaddr)->sin6_port);
((struct sockaddr_in6 *)&localaddr)->sin6_port = 0;
destaddr = auth->client->localClient->ip;
#ifdef RB_IPV6
- if(localaddr.ss_family == AF_INET6)
+ if(GET_SS_FAMILY(&localaddr) == AF_INET6)
{
auth->rport = ntohs(((struct sockaddr_in6 *)&destaddr)->sin6_port);
((struct sockaddr_in6 *)&destaddr)->sin6_port = htons(113);
/*
* delete_auth_queries()
- *
*/
void
delete_auth_queries(struct Client *target_p)