aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/include/openbsc/ipaccess.h
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-07 16:54:46 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-07 16:54:46 +0100
commit368a0a73d4f673c9baa8dc61585e7868fea923c3 (patch)
tree03ac29429cfb01d0b7167c4c2056751f9b4bb982 /openbsc/include/openbsc/ipaccess.h
parent45c2184c7e02861b9089555dc72f11cd91bd6901 (diff)
ipa: Only use one IPA number for Osmo extensions
Instead of using more numbers from the proto range we will use the 0xee and then have a mini header with our new proto id in there. For a start rename the use types to _OLD.
Diffstat (limited to 'openbsc/include/openbsc/ipaccess.h')
-rw-r--r--openbsc/include/openbsc/ipaccess.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/openbsc/include/openbsc/ipaccess.h b/openbsc/include/openbsc/ipaccess.h
index b37022038..1d00d9792 100644
--- a/openbsc/include/openbsc/ipaccess.h
+++ b/openbsc/include/openbsc/ipaccess.h
@@ -14,14 +14,21 @@ struct ipaccess_head {
u_int8_t data[0];
} __attribute__ ((packed));
+struct ipaccess_head_ext {
+ uint8_t proto;
+ uint8_t data[0];
+} __attribute__ ((packed));
+
enum ipaccess_proto {
IPAC_PROTO_RSL = 0x00,
IPAC_PROTO_IPACCESS = 0xfe,
IPAC_PROTO_SCCP = 0xfd,
IPAC_PROTO_OML = 0xff,
+
/* OpenBSC extensions */
- IPAC_PROTO_MGCP = 0xfc,
+ IPAC_PROTO_OSMO = 0xee,
+ IPAC_PROTO_MGCP_OLD = 0xfc,
};
enum ipaccess_msgtype {
@@ -32,7 +39,7 @@ enum ipaccess_msgtype {
IPAC_MSGT_ID_ACK = 0x06,
/* OpenBSC extension */
- IPAC_MSGT_SCCP_STATE = 0xff,
+ IPAC_MSGT_SCCP_OLD = 0xff,
};
enum ipaccess_id_tags {