Files
m241Neelima/components/ip_net2-6.9/ipl2tp/src/ipl2tp_v3_pw.h
T
2026-07-30 11:19:44 +05:30

110 lines
3.9 KiB
C

/*
******************************************************************************
* HEADER FILE
*
* Document no: @(#) $Name: VXWORKS_ITER40_2019102207 $ $RCSfile: ipl2tp_v3_pw.h,v $ $Revision: 1.2 $
* $Source: /home/interpeak/CVSRoot/ipl2tp/src/ipl2tp_v3_pw.h,v $
* $Author: joel $ $Date: 2006-01-30 10:47:47 $
* $State: Exp $ $Locker: $
*
* INTERPEAK_COPYRIGHT_STRING
* Design and implementation by Joel Hortelius <joel.hortelius@interpeak.se>
******************************************************************************
*/
#ifndef IPL2TP_V3_PW_H
#define IPL2TP_V3_PW_H
/*
****************************************************************************
* 1 DESCRIPTION
****************************************************************************
*/
/*
****************************************************************************
* 2 CONFIGURATION
****************************************************************************
*/
/*
****************************************************************************
* 3 INCLUDE FILES
****************************************************************************
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
****************************************************************************
* 4 DEFINES
****************************************************************************
*/
/*
****************************************************************************
* 5 TYPES
****************************************************************************
*/
/*
****************************************************************************
* 6 FUNCTIONS
****************************************************************************
*/
/*
*===========================================================================
* ipl2tp_v3_pw_ethernet_input
*===========================================================================
* Description: Feed an incoming Ethernet packet to the IPL2TP engine.
* Parameters: session - The session which the packet belongs to.
* buffer - The ethernet frame
* length - Length of ethernet frame.
* offset - Number of bytes before 'buffer' that may be used.
* align - Alignment requirement for output buffer.
* is_ip - Is this an IP packet?
* Returns: IPL2TP_STATUS_OK if success.
* IPL2TP_STATUS_BADID if invalid session ID.
*/
IP_GLOBAL Ipl2tp_status
ipl2tp_v3_pw_ethernet_input(Ipl2tp_session *session,
void *buffer,
int length,
int offset,
int align,
Ip_bool is_ip);
/*
*===========================================================================
* ipl2tp_v3_pw_session_data
*===========================================================================
* Description: Feed the incoming data to the proper callback.
* Parameters: buffer - Original buffer
* session - The session in question.
* data - The data we're looking at
* size - Size of the data
* Returns: The status.
*
*/
IP_GLOBAL Ipl2tp_status ipl2tp_v3_pw_session_data(void *buffer,
Ipl2tp_session *session,
Ip_u8 *data,
Ip_size_t size);
#ifdef __cplusplus
}
#endif
#endif
/*
****************************************************************************
* END OF FILE
****************************************************************************
*/