summaryrefslogtreecommitdiff
path: root/include/dlt/dlt_common.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dlt/dlt_common.h')
-rw-r--r--include/dlt/dlt_common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h
index 94177e3..06f91bf 100644
--- a/include/dlt/dlt_common.h
+++ b/include/dlt/dlt_common.h
@@ -73,6 +73,7 @@
\{
*/
+# include <netinet/in.h>
# include <stdio.h>
# ifdef __linux__
# include <linux/limits.h>
@@ -810,6 +811,17 @@ typedef struct
int size;
} DltBufferBlockHead;
+# ifdef DLT_USE_IPv6
+# define DLT_IP_SIZE (INET6_ADDRSTRLEN)
+# else
+# define DLT_IP_SIZE (INET_ADDRSTRLEN)
+# endif
+typedef struct DltBindAddress
+{
+ char ip[DLT_IP_SIZE];
+ struct DltBindAddress *next;
+} DltBindAddress_t;
+
# define DLT_MESSAGE_ERROR_OK 0
# define DLT_MESSAGE_ERROR_UNKNOWN -1
# define DLT_MESSAGE_ERROR_SIZE -2