aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2020-06-07 22:56:02 +0200
committerlaforge <laforge@osmocom.org>2020-08-06 16:41:20 +0000
commit6300aff3b2d56d3565a63cf7fc2f888a8ef615cb (patch)
treeb6cbd4a116934e245942139ce5e171905e49d261
parent81be7c1175f157588e2f46c79a319eaa12ded493 (diff)
gsm 12.21: add osmocom specific NM_ATT_OSMO_NS_LINK_CFG
The sysmobts uses the same OML attributes as IP.access. Because the IP.access attribute only supports IPv4 as NSVC configuration, add an own attribute. Change-Id: Ic261bc43a07fa741b97a9c6ec5a9ed6f5ecae588
-rw-r--r--include/osmocom/gsm/protocol/gsm_12_21.h1
-rw-r--r--src/gsm/abis_nm.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocom/gsm/protocol/gsm_12_21.h b/include/osmocom/gsm/protocol/gsm_12_21.h
index 86d12ea7..06755c93 100644
--- a/include/osmocom/gsm/protocol/gsm_12_21.h
+++ b/include/osmocom/gsm/protocol/gsm_12_21.h
@@ -511,6 +511,7 @@ enum abis_nm_attr {
/* osmocom (osmo-bts) specific attributes, used in combination
* with the "org.osmocom" manufacturer identification */
+ NM_ATT_OSMO_NS_LINK_CFG = 0xfd, /* osmocom version supports IPv4 & IPv6 in difference to IPACC */
NM_ATT_OSMO_REDUCEPOWER = 0xfe, /* TLV_TYPE_TV */
};
#define NM_ATT_BS11_FILE_DATA NM_ATT_EVENT_TYPE
diff --git a/src/gsm/abis_nm.c b/src/gsm/abis_nm.c
index 3fb8f0f5..13837d2b 100644
--- a/src/gsm/abis_nm.c
+++ b/src/gsm/abis_nm.c
@@ -589,6 +589,7 @@ const struct tlv_definition abis_nm_att_tlvdef = {
/*! org.osmocom GSM A-bis OML TLV parser definition */
const struct tlv_definition abis_nm_osmo_att_tlvdef = {
.def = {
+ [NM_ATT_OSMO_NS_LINK_CFG] = { TLV_TYPE_TL16V },
[NM_ATT_OSMO_REDUCEPOWER] = { TLV_TYPE_TV },
},
};