diff options
author | arehbein <arehbein@sysmocom.de> | 2023-07-08 17:24:45 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2023-08-07 17:46:53 +0200 |
commit | 8355b65d9bcfd50c3ae666824464ab4789863345 (patch) | |
tree | 9d3053860ea437370c5dcadee093bce67c2f6f99 /include | |
parent | 8712af589cb0a9a5d73e10957e696cd05f9fdc68 (diff) |
ipa: Add segmentation callback
Related: OS#5753
Change-Id: I87ef4c7023126b783dd79e7ed47be31e1b76f975
Diffstat (limited to 'include')
-rw-r--r-- | include/osmocom/netif/ipa.h | 11 |
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 |