Make default virtual host work for .12, and make IPv4-only
[ircu2.10.12-pk.git] / include / s_bsd.h
index 91bf9fa12dc13fffd9c855938914a40e6a95e7e2..db8bd3062843b9601df2cf1f5d6d60332d234a12 100644 (file)
@@ -5,9 +5,6 @@
  */
 #ifndef INCLUDED_s_bsd_h
 #define INCLUDED_s_bsd_h
-#ifndef INCLUDED_config_h
-#include "config.h"
-#endif
 #ifndef INCLUDED_sys_types_h
 #include <sys/types.h>         /* size_t, time_t */
 #define INCLUDED_sys_types_h
@@ -20,8 +17,8 @@
 struct Client;
 struct ConfItem;
 struct Listener;
-struct DNSReply;
 struct MsgQ;
+struct irc_in_addr;
 
 /*
  * TCP window sizes
@@ -48,13 +45,15 @@ extern const char* const POLL_ERROR_MSG;
 extern const char* const SELECT_ERROR_MSG;
 extern const char* const CONNECT_ERROR_MSG;
 extern const char* const SETBUFS_ERROR_MSG;
+extern const char* const TOS_ERROR_MSG;
+extern const char* const REGISTER_ERROR_MSG;
 
 
 extern int            HighestFd;
 extern struct Client* LocalClientArray[MAXCONNECTIONS];
 extern int            OpenFileDescriptorCount;
 
-extern struct sockaddr_in VirtualHost;
+extern struct irc_sockaddr VirtualHost;
 
 enum PollType {
   PT_NONE,
@@ -75,13 +74,12 @@ struct Pollable {
   PollReadyFn      r_handler;
   PollReadyFn      w_handler;
 };
-  
+
 /*
  * Proto types
  */
 extern unsigned int deliver_it(struct Client *cptr, struct MsgQ *buf);
-extern int connect_server(struct ConfItem* aconf, struct Client* by,
-                          struct DNSReply* reply);
+extern int connect_server(struct ConfItem* aconf, struct Client* by);
 extern void release_dns_reply(struct Client* cptr);
 extern int  net_close_unregistered_connections(struct Client* source);
 extern void close_connection(struct Client *cptr);
@@ -90,6 +88,6 @@ extern int  read_message(time_t delay);
 extern void init_server_identity(void);
 extern void close_connections(int close_stderr);
 extern int  init_connection_limits(void);
-extern void set_virtual_host(struct in_addr addr);
+extern void update_write(struct Client* cptr);
 
 #endif /* INCLUDED_s_bsd_h */