Index: trunk/include/samhain.h
===================================================================
--- trunk/include/samhain.h	(revision 279)
+++ trunk/include/samhain.h	(revision 283)
@@ -36,6 +36,8 @@
 #define REPLACE_OLD
 
-/* Standard buffer sizes.
- */
+/* Standard buffer sizes. 
+ * IPv6 is 8 groups of 4 hex digits seperated by colons.
+ */
+#define SH_IP_BUF        40
 #define SH_MINIBUF       64
 #define SH_BUFSIZE     1024
Index: trunk/include/sh_error.h
===================================================================
--- trunk/include/sh_error.h	(revision 279)
+++ trunk/include/sh_error.h	(revision 283)
@@ -101,5 +101,9 @@
 
 #ifdef SH_WITH_SERVER
+
 void sh_error_set_peer(const char * str);
+#ifdef HAVE_LIBPRELUDE
+void sh_error_set_peer_ip(const char * str);
+#endif
 int  set_flag_sep_log (const char * str);
 #endif
Index: trunk/include/sh_prelude.h
===================================================================
--- trunk/include/sh_prelude.h	(revision 279)
+++ trunk/include/sh_prelude.h	(revision 283)
@@ -9,5 +9,5 @@
 
 int sh_prelude_alert (int priority, int class, char * message,
-		      long msgflags, unsigned long msgid);
+		      long msgflags, unsigned long msgid, char * inet_peer_ip);
 
 /* map severity levels
