#include "irc_string.h"
#include "ircd.h"
#include "numeric.h"
-#include "commio.h"
#include "s_serv.h"
#include "s_conf.h"
#include "s_newconf.h"
{
if(!irccmp(parv[1], "-full"))
do_etrace_full(source_p);
-#ifdef IPV6
+#ifdef RB_IPV6
else if(!irccmp(parv[1], "-v6"))
do_etrace(source_p, 0, 1);
else if(!irccmp(parv[1], "-v4"))
do_etrace(struct Client *source_p, int ipv4, int ipv6)
{
struct Client *target_p;
- dlink_node *ptr;
+ rb_dlink_node *ptr;
/* report all direct connections */
- DLINK_FOREACH(ptr, lclient_list.head)
+ RB_DLINK_FOREACH(ptr, lclient_list.head)
{
target_p = ptr->data;
-#ifdef IPV6
+#ifdef RB_IPV6
if((!ipv4 && target_p->localClient->ip.ss_family == AF_INET) ||
(!ipv6 && target_p->localClient->ip.ss_family == AF_INET6))
continue;
static void
do_etrace_full(struct Client *source_p)
{
- dlink_node *ptr;
+ rb_dlink_node *ptr;
- DLINK_FOREACH(ptr, lclient_list.head)
+ RB_DLINK_FOREACH(ptr, lclient_list.head)
{
do_single_etrace(source_p, ptr->data);
}
struct membership *msptr;
const char *sockhost;
const char *name;
- dlink_node *ptr;
+ rb_dlink_node *ptr;
int operspy = 0;
name = parv[1];
return 0;
}
- DLINK_FOREACH(ptr, chptr->members.head)
+ RB_DLINK_FOREACH(ptr, chptr->members.head)
{
msptr = ptr->data;
target_p = msptr->client_p;
}
static void
-match_masktrace(struct Client *source_p, dlink_list *list,
+match_masktrace(struct Client *source_p, rb_dlink_list *list,
const char *username, const char *hostname, const char *name,
const char *gecos)
{
struct Client *target_p;
- dlink_node *ptr;
+ rb_dlink_node *ptr;
const char *sockhost;
char *mangle_gecos = NULL;
mangle_gecos = LOCAL_COPY(gecos);
}
- DLINK_FOREACH(ptr, list->head)
+ RB_DLINK_FOREACH(ptr, list->head)
{
target_p = ptr->data;
if(!IsPerson(target_p))