aboutsummaryrefslogtreecommitdiffstats
path: root/src/gb/gb_internal.h
blob: 9130935bc6acef209c5713a6f4f38ec06d4f00c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <osmocom/core/msgb.h>
#include <osmocom/gsm/tlv.h>
#include <osmocom/gprs/gprs_ns.h>

/* gprs_ns_sns.c */
int gprs_ns_rx_sns(struct gprs_ns_inst *nsi, struct msgb *msg, struct tlv_parsed *tp);

/* gprs_ns.c */
int gprs_ns_tx_sns_config(struct gprs_nsvc *nsvc, bool end_flag,
			  const struct gprs_ns_ie_ip4_elem *ip4_elems,
			  unsigned int num_ip4_elems);

int gprs_ns_tx_sns_config_ack(struct gprs_nsvc *nsvc, uint8_t *cause);

int gprs_ns_tx_sns_size(struct gprs_nsvc *nsvc, bool reset_flag, uint16_t max_nr_nsvc,
			uint16_t *ip4_ep_nr, uint16_t *ip6_ep_nr);

int gprs_ns_tx_sns_size_ack(struct gprs_nsvc *nsvc, uint8_t *cause);

struct osmo_fsm_inst *gprs_sns_bss_fsm_start(void *ctx, struct gprs_nsvc *nsvc, const char *id);
int gprs_sns_init(void);