diff options
author | Harald Welte <laforge@gnumonks.org> | 2010-12-14 12:52:16 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2010-12-14 12:52:16 +0100 |
commit | f751a10018ce05f7823f40988b4b8d7160b1c4cf (patch) | |
tree | 88ed5016bd37e330689f62f206183691058aca51 /openbsc/src/abis_nm.c | |
parent | 7e72fa0250bc678d9982ec23a45ad0e8435db2bd (diff) |
bs11_config: show the BPORT0 / BPORT1 configuration in 'query'
This introduces abis_nm_bs11_get_bport_line_cfg() and a parser for the result.
Diffstat (limited to 'openbsc/src/abis_nm.c')
-rw-r--r-- | openbsc/src/abis_nm.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/openbsc/src/abis_nm.c b/openbsc/src/abis_nm.c index 8bc3ffb3c..9f55d3510 100644 --- a/openbsc/src/abis_nm.c +++ b/openbsc/src/abis_nm.c @@ -2681,6 +2681,20 @@ int abis_nm_bs11_set_ext_time(struct gsm_bts *bts) return abis_nm_sendmsg(bts, msg); } +int abis_nm_bs11_get_bport_line_cfg(struct gsm_bts *bts, u_int8_t bport) +{ + struct abis_om_hdr *oh; + struct msgb *msg = nm_msgb_alloc(); + u_int8_t attr = NM_ATT_BS11_LINE_CFG; + + oh = (struct abis_om_hdr *) msgb_put(msg, ABIS_OM_FOM_HDR_SIZE); + fill_om_fom_hdr(oh, 2+sizeof(attr), NM_MT_GET_ATTR, + NM_OC_BS11_BPORT, bport, 0xff, 0x02); + msgb_tlv_put(msg, NM_ATT_LIST_REQ_ATTR, sizeof(attr), &attr); + + return abis_nm_sendmsg(bts, msg); +} + int abis_nm_bs11_set_bport_line_cfg(struct gsm_bts *bts, u_int8_t bport, enum abis_bs11_line_cfg line_cfg) { struct abis_om_hdr *oh; |