about summary refs log tree commit diff
path: root/src/tool/tool.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2007-11-23 16:26:03 +0000
committerFlorian Westphal <fw@strlen.de>2007-11-23 16:26:03 +0000
commit82d32ffb28262b302fb435739e4c81bd3c1a1b85 (patch)
tree2949b21f9691c7f3bd5718a5dd20341a83a555ce /src/tool/tool.h
parent024588dbe72e25b49439602670be7d8164183a74 (diff)
downloadngircd-82d32ffb28262b302fb435739e4c81bd3c1a1b85.tar.gz
ngircd-82d32ffb28262b302fb435739e4c81bd3c1a1b85.zip
bind ListenAddress for outgoing connections
ngircd would always use INADDR_ANY for outgoing connections;
which might not be desirable. Added new [Server] option
"Bind" to set source ip.
Diffstat (limited to 'src/tool/tool.h')
-rw-r--r--src/tool/tool.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tool/tool.h b/src/tool/tool.h
index 5b386e59..bdd846f7 100644
--- a/src/tool/tool.h
+++ b/src/tool/tool.h
@@ -8,7 +8,7 @@
  * (at your option) any later version.
  * Please read the file COPYING, README and AUTHORS for more information.
  *
- * $Id: tool.h,v 1.3 2005/03/19 18:43:53 fw Exp $
+ * $Id: tool.h,v 1.4 2007/11/23 16:26:05 fw Exp $
  *
  * Tool functions (Header)
  */
@@ -16,7 +16,7 @@
 
 #ifndef __tool_h__
 #define __tool_h__
-
+#include "portab.h"
 
 GLOBAL void ngt_TrimLastChr PARAMS((char *String, const char Chr ));
 
@@ -24,7 +24,7 @@ GLOBAL void ngt_TrimStr PARAMS((char *String ));
 
 GLOBAL char *ngt_LowerStr PARAMS((char *String ));
 
-
+GLOBAL bool ngt_IPStrToBin PARAMS((const char *ip_str, struct in_addr *inaddr));
 #endif