1 #ifndef _OSMO_PROTO_IPACCESS_H
2 #define _OSMO_PROTO_IPACCESS_H
6 #define IPA_TCP_PORT_OML 3002
7 #define IPA_TCP_PORT_RSL 3003
13 } __attribute__ ((packed));
18 } __attribute__ ((packed));
21 IPAC_PROTO_RSL = 0x00,
22 IPAC_PROTO_IPACCESS = 0xfe,
23 IPAC_PROTO_SCCP = 0xfd,
24 IPAC_PROTO_OML = 0xff,
28 IPAC_PROTO_OSMO = 0xee,
29 IPAC_PROTO_MGCP_OLD = 0xfc,
32 enum ipaccess_proto_ext {
33 IPAC_PROTO_EXT_CTRL = 0x00,
34 IPAC_PROTO_EXT_MGCP = 0x01,
35 IPAC_PROTO_EXT_LAC = 0x02,
36 IPAC_PROTO_EXT_SMSC = 0x03,
39 enum ipaccess_msgtype {
40 IPAC_MSGT_PING = 0x00,
41 IPAC_MSGT_PONG = 0x01,
42 IPAC_MSGT_ID_GET = 0x04,
43 IPAC_MSGT_ID_RESP = 0x05,
44 IPAC_MSGT_ID_ACK = 0x06,
47 IPAC_MSGT_SCCP_OLD = 0xff,
50 enum ipaccess_id_tags {
51 IPAC_IDTAG_SERNR = 0x00,
52 IPAC_IDTAG_UNITNAME = 0x01,
53 IPAC_IDTAG_LOCATION1 = 0x02,
54 IPAC_IDTAG_LOCATION2 = 0x03,
55 IPAC_IDTAG_EQUIPVERS = 0x04,
56 IPAC_IDTAG_SWVERSION = 0x05,
57 IPAC_IDTAG_IPADDR = 0x06,
58 IPAC_IDTAG_MACADDR = 0x07,
59 IPAC_IDTAG_UNIT = 0x08,
68 uint16_t more_more_magic;
69 uint32_t header_length;
77 uint16_t table_offset;
79 } __attribute__((packed));
92 } __attribute__((packed));