git-svn-id: http://svn.eurecom.fr/openair4G/trunk@5714 818b1a75-f10b-46b9-bf7c-635c3b92a50f
61 lines
2.7 KiB
C
Executable File
61 lines
2.7 KiB
C
Executable File
/*******************************************************************************
|
|
OpenAirInterface
|
|
Copyright(c) 1999 - 2014 Eurecom
|
|
|
|
OpenAirInterface is free software: you can redistribute it and/or modify
|
|
it under the terms of the GNU General Public License as published by
|
|
the Free Software Foundation, either version 3 of the License, or
|
|
(at your option) any later version.
|
|
|
|
|
|
OpenAirInterface is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
GNU General Public License for more details.
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
along with OpenAirInterface.The full GNU General Public License is
|
|
included in this distribution in the file called "COPYING". If not,
|
|
see <http://www.gnu.org/licenses/>.
|
|
|
|
Contact Information
|
|
OpenAirInterface Admin: openair_admin@eurecom.fr
|
|
OpenAirInterface Tech : openair_tech@eurecom.fr
|
|
OpenAirInterface Dev : openair4g-devel@eurecom.fr
|
|
|
|
Address : Eurecom, Campus SophiaTech, 450 Route des Chappes, CS 50193 - 06904 Biot Sophia Antipolis cedex, FRANCE
|
|
|
|
*******************************************************************************/
|
|
/***************************************************************************
|
|
pdcp_control_primitives.c
|
|
-------------------
|
|
begin : Mon Dec 10 2001
|
|
email : Lionel.Gauthier@eurecom.fr
|
|
-------------------
|
|
description
|
|
This file contains the functions used for configuration of pdcp
|
|
|
|
***************************************************************************/
|
|
#include "rtos_header.h"
|
|
#include "platform.h"
|
|
#include "protocol_vars_extern.h"
|
|
#include "print.h"
|
|
//-----------------------------------------------------------------------------
|
|
#include "rlc.h"
|
|
#include "pdcp.h"
|
|
#include "debug_l2.h"
|
|
//-----------------------------------------------------------------------------
|
|
void
|
|
configure_pdcp_req (struct pdcp_entity *pdcpP, void *rlcP, uint8_t rlc_sap_typeP, uint8_t header_compression_typeP)
|
|
{
|
|
//-----------------------------------------------------------------------------
|
|
mem_block *mb;
|
|
|
|
mb = get_free_mem_block (sizeof (struct cpdcp_primitive));
|
|
((struct cpdcp_primitive *) mb->data)->type = CPDCP_CONFIG_REQ;
|
|
((struct cpdcp_primitive *) mb->data)->primitive.config_req.rlc_sap = rlcP;
|
|
((struct cpdcp_primitive *) mb->data)->primitive.config_req.rlc_type_sap = rlc_sap_typeP;
|
|
((struct cpdcp_primitive *) mb->data)->primitive.config_req.header_compression_type = header_compression_typeP;
|
|
send_pdcp_control_primitive (pdcpP, mb);
|
|
}
|