IPv6 support (hopefully with fewer future transition pains)
[ircu2.10.12-pk.git] / include / client.h
index e5aa4a25b36b730b57fb23fc67a6aa54b018907c..14967911b5fffda3b4a2628ee0b80c1020232b83 100644 (file)
 #ifndef INCLUDED_ircd_handler_h
 #include "ircd_handler.h"
 #endif
+#ifndef INCLUDED_res_h
+#include "res.h"
+#endif
 #ifndef INCLUDED_sys_types_h
 #include <sys/types.h>          /* time_t, size_t */
 #define INCLUDED_sys_types_h
 #endif
-#ifndef INCLUDED_netinet_in_h
-#include <netinet/in.h>         /* in_addr */
-#define INCLUDED_netinet_in_h
-#endif
 
 struct ConfItem;
 struct Listener;
@@ -234,13 +233,13 @@ struct Client {
    */
   time_t         cli_lasttime;  /* last time data read from socket */
   time_t         cli_since;     /* last time we parsed something, flood control */
-                               
+
   time_t         cli_firsttime; /* time client was created */
   time_t         cli_lastnick;  /* TimeStamp on nick */
   int            cli_marker;    /* /who processing marker */
   struct Flags   cli_flags;     /* client flags */
   unsigned int   cli_hopcount;  /* number of servers to this 0 = local */
-  struct in_addr cli_ip;        /* Real ip# NOT defined for remote servers! */
+  struct irc_in_addr cli_ip;    /* Real IP of client */
   short          cli_status;    /* Client type */
   unsigned char  cli_local;     /* local or remote client */
   struct Privs   cli_privs;     /* Oper privileges */