/* ****************************************************************************** * HEADER FILE * * Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipdhcpc6_h.h,v $ $Revision: 1.10 $ * $Source: /home/interpeak/CVSRoot/ipdhcpc6/src/ipdhcpc6_h.h,v $ * $Author: hsun $ $Date: 2010-08-18 06:51:08 $ * $State: Exp $ $Locker: $ * * INTERPEAK_COPYRIGHT_STRING * Design and implementation by Joel Hortelius ****************************************************************************** */ #ifndef IPDHCPC6_H_H #define IPDHCPC6_H_H /* **************************************************************************** * 1 DESCRIPTION **************************************************************************** */ /* **************************************************************************** * 2 CONFIGURATION **************************************************************************** */ /* **************************************************************************** * 3 INCLUDE FILES **************************************************************************** */ #include "ipdhcpc6_attr.h" #include "ipdhcpc6_util.h" #ifdef __cplusplus extern "C" { #endif /* **************************************************************************** * 4 DEFINES **************************************************************************** */ #define IPDHCPC6_NAME "ipdhcpc6" #ifdef IPCOM_SYSLOG_PRIORITY #undef IPCOM_SYSLOG_PRIORITY #endif #if defined(_WRS_CONFIG_IPDHCPC6_SYSLOG_PRIORITY) #define IPCOM_SYSLOG_PRIORITY _WRS_CONFIG_IPDHCPC6_SYSLOG_PRIORITY #else #define IPCOM_SYSLOG_PRIORITY IPCOM_SYSLOG_PRIO_DEFAULT #endif #ifdef IPCOM_SYSLOG_FACILITY #undef IPCOM_SYSLOG_FACILITY #endif #define IPCOM_SYSLOG_FACILITY IPCOM_LOG_IPDHCPC6 /* Possible return codes */ #define IPDHCPC6_FDSET_CONTINUE 0 #define IPDHCPC6_FDSET_CONFIGURE 1 #define IPDHCPC6_FDSET_EXIT 2 #define IPDHCPC6_DUID_LLT 1 #define IPDHCPC6_DUID_EN 2 #define IPDHCPC6_DUID_LL 3 /* **************************************************************************** * 5 TYPES **************************************************************************** */ struct Ipdhcpc6_if_context; struct Ipdhcpc6_shell_context; struct Ipdhcpc6_rtsock_context; struct Ipdhcpc6_sock_context; struct Ipdhcpc6_rtadv_context; typedef struct Ipdhcpc6_context { Ipdhcpc6_util_ntoa_t ntoa; /* NTOA context for logging */ char *name; /* Context name */ struct Ipdhcpc6_if_context *ifctx; /* Interface context */ struct Ipdhcpc6_shell_context *shellctx; /* Attribute context */ struct Ipdhcpc6_rtsock_context *rtctx; /* Routing socket context */ struct Ipdhcpc6_rtadv_context *rtadvctx; /* Rtadv context */ struct Ipdhcpc6_sock_context *sctx; /* Socket context */ Ip_fd fd_ipd; Ipcom_pqueue *tmo_head; /* Timeout queue */ } Ipdhcpc6_context_t; /* **************************************************************************** * 6 FUNCTIONS **************************************************************************** */ #ifdef __cplusplus } #endif #endif /* **************************************************************************** * END OF FILE **************************************************************************** */