diff options
author | Max <msuraev@sysmocom.de> | 2016-04-20 15:57:13 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-04-22 14:55:33 +0200 |
commit | 26679e0475593aca645c7029e1aad899da73217a (patch) | |
tree | b42d881edde2eccfbb350c26def3fd59d9de99db /openbsc/include/openbsc/rest_octets.h | |
parent | 27c3e76aa7e0912d3404b96a4a043e7208044d0f (diff) |
Add basic UARFCN support
* add data structures, generation functions
* vty interface for neightbor UARFCNs specific to SI2quater
* vty test
* unit test
Fixes: OS#1666
Diffstat (limited to 'openbsc/include/openbsc/rest_octets.h')
-rw-r--r-- | openbsc/include/openbsc/rest_octets.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/openbsc/include/openbsc/rest_octets.h b/openbsc/include/openbsc/rest_octets.h index fd5ec6a74..32b996317 100644 --- a/openbsc/include/openbsc/rest_octets.h +++ b/openbsc/include/openbsc/rest_octets.h @@ -5,11 +5,13 @@ #include <openbsc/gsm_04_08.h> #include <osmocom/gsm/sysinfo.h> +#define SI2Q_MAX_LEN 160 +#define SI2Q_MIN_LEN 18 + /* generate SI1 rest octets */ int rest_octets_si1(uint8_t *data, uint8_t *nch_pos, int is1800_net); -int rest_octets_si2quater(uint8_t *data, - const struct osmo_earfcn_si2q *e, bool uarfcn, - bool earfcn); +int rest_octets_si2quater(uint8_t *data, const struct osmo_earfcn_si2q *e, + const uint16_t *u, const uint16_t *sc, size_t u_len); struct gsm48_si_selection_params { uint16_t penalty_time:5, |