diff options
author | arehbein <arehbein@sysmocom.de> | 2023-05-22 17:09:49 +0200 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2023-08-07 16:50:22 +0200 |
commit | 8712af589cb0a9a5d73e10957e696cd05f9fdc68 (patch) | |
tree | 69bf24c16ddee091b1b95625a1bb37c3bc401fa4 /src/ipa.c | |
parent | 7fe21f67f647a1cede87042911588e57b17580c6 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; |