From: Sven Eckelmann <sven@narfation.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Cc: Sven Eckelmann <sven@narfation.org>
Subject: [PATCH] alfred: mark alfred_change_bat_iface_v0 as packed
Date: Tue, 28 Jul 2026 19:06:43 +0200 [thread overview]
Message-ID: <20260728-bugfixes-packed-v1-1-5a1888ab4b87@narfation.org> (raw)
struct alfred_change_bat_iface_v0 is part of the unix socket protocol and
is the only protocol structure in packet.h not marked as __packed. The
current members happen to not require any padding, so the layout is
unaffected for common ABIs. But to be safe, also mark this struct as
packed.
Signed-off-by: Sven Eckelmann <sven@narfation.org>
---
packet.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packet.h b/packet.h
index c0723b8..a7df81e 100644
--- a/packet.h
+++ b/packet.h
@@ -164,7 +164,7 @@ struct alfred_change_interface_v0 {
struct alfred_change_bat_iface_v0 {
struct alfred_tlv header;
char bat_iface[IFNAMSIZ];
-};
+} __packed;
/**
* enum alfred_packet_type - Types of packet stored in the main alfred_tlv
---
base-commit: 462a0cf40615f62e0912c36d72a75accbb26f5ee
change-id: 20260728-bugfixes-packed-4964bd7ed951
Best regards,
--
Sven Eckelmann <sven@narfation.org>
reply other threads:[~2026-07-28 21:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260728-bugfixes-packed-v1-1-5a1888ab4b87@narfation.org \
--to=sven@narfation.org \
--cc=b.a.t.m.a.n@lists.open-mesh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox