diff options
author | Andreas Eversberg <jolly@eversberg.eu> | 2012-07-16 18:50:26 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-07-16 18:50:26 +0200 |
commit | 0c470759da426ad649a735918cf24afb610f9c2d (patch) | |
tree | 296e5ba2fbdf17d54c4649da5008329d8b4dd207 | |
parent | 5a53eff4cb1ce11fa2ba1026dd52dce1e59a4b7b (diff) |
PCU: Add verion number of PCU interface to PCU INFO IND message
The client (PCU) can check if it is compiled with a different version.
-rw-r--r-- | include/osmo-bts/pcuif_proto.h | 3 | ||||
-rw-r--r-- | src/common/pcu_sock.c | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/osmo-bts/pcuif_proto.h b/include/osmo-bts/pcuif_proto.h index 54a8e7b..99947f7 100644 --- a/include/osmo-bts/pcuif_proto.h +++ b/include/osmo-bts/pcuif_proto.h @@ -1,6 +1,8 @@ #ifndef _PCUIF_PROTO_H #define _PCUIF_PROTO_H +#define PCU_IF_VERSION 0x01 + /* msg_type */ #define PCU_IF_MSG_DATA_REQ 0x00 /* send data to given channel */ #define PCU_IF_MSG_DATA_IND 0x02 /* receive data from given channel */ @@ -74,6 +76,7 @@ struct gsm_pcu_if_info_trx { } __attribute__ ((packed)); struct gsm_pcu_if_info_ind { + uint32_t version; uint32_t flags; struct gsm_pcu_if_info_trx trx[8]; /* TRX infos per BTS */ /* RAI */ diff --git a/src/common/pcu_sock.c b/src/common/pcu_sock.c index c3f47da..0134261 100644 --- a/src/common/pcu_sock.c +++ b/src/common/pcu_sock.c @@ -120,6 +120,7 @@ int pcu_tx_info_ind(void) return -ENOMEM; pcu_prim = (struct gsm_pcu_if *) msg->data; info_ind = &pcu_prim->u.info_ind; + info_ind->version = PCU_IF_VERSION; if (avail_lai && avail_nse && avail_cell && avail_nsvc[0]) { info_ind->flags |= PCU_IF_FLAG_ACTIVE; |