aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-05-22 22:00:45 +0200
committerHarald Welte <laforge@gnumonks.org>2011-05-22 22:00:45 +0200
commitcbda62ee76f7798804742965533ff525cf7562c6 (patch)
tree45395ae0eb147c9da6386a844d36dad1fec0d0f8 /include
parent8a183fb4235cdd51b660380f7e05de40713bdfa8 (diff)
abis: use ipaccess protocol header from libosmogsm
Diffstat (limited to 'include')
-rw-r--r--include/osmo-bts/abis.h37
1 files changed, 1 insertions, 36 deletions
diff --git a/include/osmo-bts/abis.h b/include/osmo-bts/abis.h
index a42f703f..91b44631 100644
--- a/include/osmo-bts/abis.h
+++ b/include/osmo-bts/abis.h
@@ -3,46 +3,11 @@
#include <osmocom/core/select.h>
#include <osmocom/core/timer.h>
-
-#define IPA_TCP_PORT_OML 3002
-#define IPA_TCP_PORT_RSL 3003
+#include <osmocom/gsm/protocol/ipaccess.h>
#define OML_RETRY_TIMER 5
#define OML_PING_TIMER 20
-struct ipabis_head {
- u_int16_t len; /* network byte order */
- u_int8_t proto;
- u_int8_t data[0];
-} __attribute__ ((packed));
-
-enum ipabis_proto {
- IPA_PROTO_RSL = 0x00,
- IPA_PROTO_IPACCESS = 0xfe,
- IPA_PROTO_SCCP = 0xfd,
- IPA_PROTO_OML = 0xff,
-};
-
-enum ipabis_msgtype {
- IPA_MSGT_PING = 0x00,
- IPA_MSGT_PONG = 0x01,
- IPA_MSGT_ID_GET = 0x04,
- IPA_MSGT_ID_RESP = 0x05,
- IPA_MSGT_ID_ACK = 0x06,
-};
-
-enum ipabis_id_tags {
- IPA_IDTAG_SERNR = 0x00,
- IPA_IDTAG_UNITNAME = 0x01,
- IPA_IDTAG_LOCATION1 = 0x02,
- IPA_IDTAG_LOCATION2 = 0x03,
- IPA_IDTAG_EQUIPVERS = 0x04,
- IPA_IDTAG_SWVERSION = 0x05,
- IPA_IDTAG_IPADDR = 0x06,
- IPA_IDTAG_MACADDR = 0x07,
- IPA_IDTAG_UNIT = 0x08,
-};
-
struct ipabis_link {
int state;
struct osmocom_bts *bts; /* set, if OML link */