libosmogsm 1.9.0.196-9975
Osmocom GSM library
bsslap.h
Go to the documentation of this file.
1
6/*
7 * (C) 2020 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
8 * All Rights Reserved
9 *
10 * Author: Neels Hofmeyr <neels@hofmeyr.de>
11 *
12 * SPDX-License-Identifier: GPL-2.0+
13 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License as published by
16 * the Free Software Foundation; either version 2 of the License, or
17 * (at your option) any later version.
18 *
19 * This program is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 * GNU General Public License for more details.
23 *
24 */
25#pragma once
26
29
30struct msgb;
31
33 int rc;
37 char *logmsg;
38};
39
40extern const struct value_string osmo_bsslap_msgt_names[];
41static inline const char *osmo_bsslap_msgt_name(enum bsslap_msgt val)
43
44extern const struct value_string osmo_bsslap_iei_names[];
45static inline const char *osmo_bsslap_iei_name(enum bsslap_iei val)
47
48int osmo_bsslap_enc(struct msgb *msg, const struct bsslap_pdu *pdu);
49int osmo_bsslap_dec(struct bsslap_pdu *pdu,
50 struct osmo_bsslap_err **err, void *err_ctx,
51 const uint8_t *data, size_t len);
52
int osmo_bsslap_enc(struct msgb *msg, const struct bsslap_pdu *pdu)
Encode BSSLAP PDU and append to msgb (3GPP TS 48.071).
Definition: bsslap.c:163
static const char * osmo_bsslap_msgt_name(enum bsslap_msgt val)
Definition: bsslap.h:41
const struct value_string osmo_bsslap_msgt_names[]
Definition: bsslap.c:281
int osmo_bsslap_dec(struct bsslap_pdu *pdu, struct osmo_bsslap_err **err, void *err_ctx, const uint8_t *data, size_t len)
Decode BSSLAP PDU (3GPP TS 48.071).
Definition: bsslap.c:212
static const char * osmo_bsslap_iei_name(enum bsslap_iei val)
Definition: bsslap.h:45
const struct value_string osmo_bsslap_iei_names[]
Definition: bsslap.c:295
bsslap_msgt
Definition: gsm_48_071.h:28
bsslap_iei
Definition: gsm_48_071.h:55
lcs_cause
3GPP TS 49.031 10.13 LCS Cause, also in 3GPP TS 48.008 3.2.2.66, which simply refers to the former.
Definition: gsm_49_031.h:36
uint8_t data[0]
const char * get_value_string(const struct value_string *vs, uint32_t val)
uint8_t len
Definition: gsm_04_11.h:0
uint8_t msg[0]
Definition: gsm_08_08.h:8
Definition: gsm_48_071.h:106
Definition: bsslap.h:32
int rc
Definition: bsslap.h:33
enum bsslap_iei iei
Definition: bsslap.h:35
enum bsslap_msgt msg_type
Definition: bsslap.h:34
enum lcs_cause cause
Definition: bsslap.h:36
char * logmsg
Definition: bsslap.h:37