/* ****************************************************************************** * INTERPEAK SOURCE FILE * * Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmip6_ntop.c,v $ $Revision: 1.3 $ * $Source: /home/interpeak/CVSRoot/ipmip6/src/ipmip6_ntop.c,v $ * $Author: jhorteli $ * $State: Exp $ $Locker: $ * * INTERPEAK_COPYRIGHT_STRING * Design and implementation by Joel Hortelius ****************************************************************************** */ /* **************************************************************************** * 1 DESCRIPTION **************************************************************************** */ /* **************************************************************************** * 2 CONFIGURATION **************************************************************************** */ #include "ipmip6_config.h" /* **************************************************************************** * 3 INCLUDE FILES **************************************************************************** */ #define IPCOM_USE_CLIB_PROTO #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include "ipmip6_h.h" #include #include #include /* **************************************************************************** * 4 DEFINES **************************************************************************** */ /* **************************************************************************** * 5 TYPES **************************************************************************** */ /* **************************************************************************** * 6 EXTERN PROTOTYPES **************************************************************************** */ /* **************************************************************************** * 7 LOCAL PROTOTYPES **************************************************************************** */ /* **************************************************************************** * 8 DATA **************************************************************************** */ /* **************************************************************************** * 9 STATIC FUNCTIONS **************************************************************************** */ /* **************************************************************************** * 10 GLOBAL FUNCTIONS **************************************************************************** */ IP_GLOBAL const char * ipmip6_ntop_InetAddress(Ipmip_proc_t *proc, Ip_u32 inetAddressType, const union Ipmip6_mib_InetAddress *inetAddress) { switch (inetAddressType) { default: case IPMIP6_MIB_InetAddressType_unknown: return "unknown"; #ifdef IPMIP_USE_INET case IPMIP6_MIB_InetAddressType_ipv4: case IPMIP6_MIB_InetAddressType_ipv4z: return ipmip_ntop_inet(proc, inetAddress->ipv4.s_addr); #endif case IPMIP6_MIB_InetAddressType_ipv6: case IPMIP6_MIB_InetAddressType_ipv6z: return ipmip_ntop_inet6(proc, &inetAddress->ipv6, IP_NULL); } } /* **************************************************************************** * 11 PUBLIC FUNCTIONS **************************************************************************** */ /* **************************************************************************** * END OF FILE **************************************************************************** */