s1ap_common.c 1.71 KB
Newer Older
1 2 3 4 5
/*
 * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The OpenAirInterface Software Alliance licenses this file to You under
6
 * the OAI Public License, Version 1.1  (the "License"); you may not use this file
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
 * except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.openairinterface.org/?page_id=698
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *-------------------------------------------------------------------------------
 * For more information about the OpenAirInterface (OAI) Software Alliance:
 *      contact@openairinterface.org
 */

Cedric Roux's avatar
 
Cedric Roux committed
22 23
/*! \file s1ap_common.c
 * \brief s1ap procedures for both eNB and MME
24
 * \author Sebastien ROUX and Navid Nikaein
25
 * \email navid.nikaein@eurecom.fr
26
 * \date 2012-2015
Cedric Roux's avatar
 
Cedric Roux committed
27 28 29 30 31 32
 * \version 0.1
 */

#include <stdint.h>

#include "s1ap_common.h"
33
#include "S1AP_S1AP-PDU.h"
Cedric Roux's avatar
 
Cedric Roux committed
34 35

int asn_debug = 0;
Cedric Roux's avatar
Cedric Roux committed
36
int asn1_xer_print = 0;
Cedric Roux's avatar
 
Cedric Roux committed
37

38
#if defined(EMIT_ASN_DEBUG_EXTERN)
Cedric Roux's avatar
 
Cedric Roux committed
39 40
inline void ASN_DEBUG(const char *fmt, ...)
{
41 42 43 44 45 46 47 48 49 50 51 52
  if (asn_debug) {
    int adi = asn_debug_indent;
    va_list ap;
    va_start(ap, fmt);
    fprintf(stderr, "[ASN1]");

    while(adi--) fprintf(stderr, " ");

    vfprintf(stderr, fmt, ap);
    fprintf(stderr, "\n");
    va_end(ap);
  }
Cedric Roux's avatar
 
Cedric Roux committed
53
}
54
#endif
Cedric Roux's avatar
 
Cedric Roux committed
55

56
void s1ap_handle_criticality(S1AP_Criticality_t criticality)
Cedric Roux's avatar
 
Cedric Roux committed
57 58
{
}