/* ****************************************************************************** * INTERPEAK SOURCE FILE * * Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipmip6pm_icmp.c,v $ $Revision: 1.4 $ * $Source: /home/interpeak/CVSRoot/ipmip6pm/src/ipmip6pm_icmp.c,v $ * $Author: jhorteli $ * $State: Exp $ $Locker: $ * * INTERPEAK_COPYRIGHT_STRING * Design and implementation by Joel Hortelius ****************************************************************************** */ /* **************************************************************************** * 1 DESCRIPTION **************************************************************************** */ /* **************************************************************************** * 2 CONFIGURATION **************************************************************************** */ #include "ipmip6pm_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 "ipmip6pm_h.h" #include "ipmip6pm_icmp.h" #include "ipmip6pm_if.h" #include "ipmip6pm_pktbuf.h" /* **************************************************************************** * 4 DEFINES **************************************************************************** */ /* **************************************************************************** * 5 TYPES **************************************************************************** */ /* **************************************************************************** * 6 EXTERN PROTOTYPES **************************************************************************** */ /* **************************************************************************** * 7 LOCAL PROTOTYPES **************************************************************************** */ /* **************************************************************************** * 8 DATA **************************************************************************** */ /* **************************************************************************** * 9 STATIC FUNCTIONS **************************************************************************** */ /* **************************************************************************** * 10 GLOBAL FUNCTIONS **************************************************************************** */ /* *=========================================================================== * ipmip6mn_icmp_dispatch *=========================================================================== * Description: Process an ICMP packet. * Parameters: context - The context. * icmp - The ICMP packet * icmp_len - The length of the ICMP packet. * pktinfo - Packet info. * src - The sender * salist - List of SA's processed * rthdr2 - Did this ICMP frame contain a RTHDR2. * Returns: IP_TRUE if successfully processed. * */ IP_GLOBAL Ip_bool ipmip6pm_icmp_dispatch(Ipmip6pm_context_t *ctx, Ipmip_proc_t *proc, Ipmip6pm_pktbuf_t *pbuf) { Ipmip6_pkt_icmp6_t *icmp = IPMIP_BUFFER_PTR(&pbuf->ipmip6.ipmip.packet); IPMIP_UNUSED_PARAMETER(ctx); IPMIP_UNUSED_PARAMETER(proc); /* Determine what we've got */ switch (icmp->icmp6_type) { default: break; } return IP_FALSE; } /* **************************************************************************** * 11 PUBLIC FUNCTIONS **************************************************************************** */ /* **************************************************************************** * END OF FILE **************************************************************************** */