aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/xsc.h
blob: a2f43eb7dae8ef72d1a4bc03db1673deee438f90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once

#include <stdint.h>

struct msgb;
struct gsm_network;

typedef int (*mncc_recv_cb_t)(struct gsm_network *, struct msgb *);

struct vty;

#define MAX_A5_KEY_LEN	(128/8)

struct gsm_encr {
	uint8_t alg_id;
	uint8_t key_len;
	uint8_t key[MAX_A5_KEY_LEN];
};

struct gsm_network *gsm_network_init(void *ctx,
				     uint16_t country_code,
				     uint16_t network_code,
				     mncc_recv_cb_t mncc_recv);

int xsc_vty_init(struct gsm_network *network);
struct gsm_network *gsmnet_from_vty(struct vty *v);