esm_ebr_context.h 3.58 KB
Newer Older
Lionel Gauthier's avatar
GPLv3  
Lionel Gauthier committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
/*******************************************************************************
    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.
Cedric Roux's avatar
 
Cedric Roux committed
15

Lionel Gauthier's avatar
GPLv3  
Lionel Gauthier committed
16 17 18 19 20 21 22 23 24 25 26 27 28 29
    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, Compus SophiaTech 450, route des chappes, 06451 Biot, France.

 *******************************************************************************/
/*****************************************************************************
30
Source      esm_ebr_context.h
Cedric Roux's avatar
 
Cedric Roux committed
31

32
Version     0.1
Cedric Roux's avatar
 
Cedric Roux committed
33

34
Date        2013/05/28
Cedric Roux's avatar
 
Cedric Roux committed
35

36
Product     NAS stack
Cedric Roux's avatar
 
Cedric Roux committed
37

38
Subsystem   EPS Session Management
Cedric Roux's avatar
 
Cedric Roux committed
39

40
Author      Frederic Maurel
Cedric Roux's avatar
 
Cedric Roux committed
41

42
Description Defines functions used to handle EPS bearer contexts.
Cedric Roux's avatar
 
Cedric Roux committed
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77

*****************************************************************************/
#ifndef __ESM_EBR_CONTEXT_H__
#define __ESM_EBR_CONTEXT_H__

#include "networkDef.h"

/****************************************************************************/
/*********************  G L O B A L    C O N S T A N T S  *******************/
/****************************************************************************/

/****************************************************************************/
/************************  G L O B A L    T Y P E S  ************************/
/****************************************************************************/

#ifdef NAS_UE
/* Traffic flow template operation */
typedef enum {
    ESM_EBR_CONTEXT_TFT_CREATE,
    ESM_EBR_CONTEXT_TFT_DELETE,
    ESM_EBR_CONTEXT_TFT_ADD_PACKET,
    ESM_EBR_CONTEXT_TFT_REPLACE_PACKET,
    ESM_EBR_CONTEXT_TFT_DELETE_PACKET,
} esm_ebr_context_tft_t;
#endif

/****************************************************************************/
/********************  G L O B A L    V A R I A B L E S  ********************/
/****************************************************************************/

/****************************************************************************/
/******************  E X P O R T E D    F U N C T I O N S  ******************/
/****************************************************************************/

#ifdef NAS_UE
78 79
int esm_ebr_context_create(int pid, int ebi, int is_default,
                           const network_qos_t *qos, const network_tft_t *tft);
Cedric Roux's avatar
 
Cedric Roux committed
80

81
int esm_ebr_context_release(int ebi, int *pid, int *bid);
Cedric Roux's avatar
 
Cedric Roux committed
82 83 84

int esm_ebr_context_get_pid(int ebi);

85 86
int esm_ebr_context_check_tft(int pid, int ebi, const network_tft_t *tft,
                              esm_ebr_context_tft_t operation);
Cedric Roux's avatar
 
Cedric Roux committed
87 88 89
#endif

#ifdef NAS_MME
90
int esm_ebr_context_create(emm_data_context_t *ctx, int pid, int ebi, int is_default,
91
                           const network_qos_t *qos, const network_tft_t *tft);
Cedric Roux's avatar
 
Cedric Roux committed
92

93
int esm_ebr_context_release(emm_data_context_t *ctx, int ebi, int *pid, int *bid);
Cedric Roux's avatar
 
Cedric Roux committed
94 95 96
#endif

#endif /* __ESM_EBR_CONTEXT_H__ */