aboutsummaryrefslogtreecommitdiffstats
path: root/src/ipa.c
diff options
context:
space:
mode:
authorarehbein <arehbein@sysmocom.de>2023-05-22 17:09:49 +0200
committerDaniel Willmann <dwillmann@sysmocom.de>2023-08-07 16:50:22 +0200
commit8712af589cb0a9a5d73e10957e696cd05f9fdc68 (patch)
tree69bf24c16ddee091b1b95625a1bb37c3bc401fa4 /src/ipa.c
parent7fe21f67f647a1cede87042911588e57b17580c6 (diff)
examples: Add extension header octet to example
Mainly to make data/packets look (pseudo-)correct in Wireshark. Also: Add helper for allocating message buffers with extended headroom for IPA. Change-Id: I962b9edcba65cdc98da00d2f8753dc5acd481502
Diffstat (limited to 'src/ipa.c')
-rw-r--r--src/ipa.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ipa.c b/src/ipa.c
index 197a47f..5f62e88 100644
--- a/src/ipa.c
+++ b/src/ipa.c
@@ -97,6 +97,11 @@ struct msgb *osmo_ipa_msg_alloc(int headroom)
return msg;
}
+struct msgb *osmo_ipa_ext_msg_alloc(size_t headroom)
+{
+ return osmo_ipa_msg_alloc(sizeof(struct ipa_head_ext) + headroom);
+}
+
void osmo_ipa_msg_push_header(struct msgb *msg, uint8_t proto)
{
struct ipa_head *hh;