diff options
Diffstat (limited to 'include/dlt')
-rw-r--r-- | include/dlt/dlt_common.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/dlt/dlt_common.h b/include/dlt/dlt_common.h index 4f030a5..2eec4d2 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> @@ -817,6 +818,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 |