aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorarehbein <arehbein@sysmocom.de>2023-07-08 17:24:45 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2023-08-07 17:46:53 +0200
commit8355b65d9bcfd50c3ae666824464ab4789863345 (patch)
tree9d3053860ea437370c5dcadee093bce67c2f6f99 /include
parent8712af589cb0a9a5d73e10957e696cd05f9fdc68 (diff)
ipa: Add segmentation callback
Diffstat (limited to 'include')
-rw-r--r--include/osmocom/netif/ipa.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/osmocom/netif/ipa.h b/include/osmocom/netif/ipa.h
index 7494d8d..1923253 100644
--- a/include/osmocom/netif/ipa.h
+++ b/include/osmocom/netif/ipa.h
@@ -18,6 +18,15 @@ struct ipa_head_ext {
uint8_t data[0];
} __attribute__ ((packed));
+struct osmo_ipa_msgb_cb {
+ uint8_t proto;
+ uint8_t proto_ext;
+} __attribute__ ((packed));
+
+#define OSMO_IPA_MSGB_CB(__msg) ((struct osmo_ipa_msgb_cb *)&((__msg)->cb[0]))
+#define osmo_ipa_msgb_cb_proto(__x) OSMO_IPA_MSGB_CB(__x)->proto
+#define osmo_ipa_msgb_cb_proto_ext(__x) OSMO_IPA_MSGB_CB(__x)->proto_ext
+
struct msgb *osmo_ipa_msg_alloc(int headroom);
struct msgb *osmo_ipa_ext_msg_alloc(size_t headroom);
@@ -42,4 +51,6 @@ struct msgb *ipa_cli_id_ack(void);
int osmo_ipa_parse_msg_id_resp(struct msgb *msg, struct ipaccess_unit *unit_data);
+int osmo_ipa_segmentation_cb(struct msgb *msg);
+
#endif