]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
lib/route.h: Explicit padding added to struct nexthop_adata. v3-nexthop_adata-fixup
authorKaterina Kubecova <katerina.kubecova@nic.cz>
Tue, 25 Mar 2025 10:51:54 +0000 (11:51 +0100)
committerKaterina Kubecova <katerina.kubecova@nic.cz>
Tue, 25 Mar 2025 10:51:54 +0000 (11:51 +0100)
Implicit padding caused unspecified behaviour and led to generating more mpls labels when compiled with clang.

lib/route.h

index 6ad4a7c7d94b9d6ef6b579f866fa6c3c20cb04bd..000c24c44ae1ce17cddccdd77e7f595207d114d8 100644 (file)
@@ -157,6 +157,7 @@ struct nexthop {
 /* For packing one into eattrs */
 struct nexthop_adata {
   struct adata ad;
+  PADDING(unused, 0, 4);
   /* There is either a set of nexthops or a special destination (RTD_*) */
   union {
     struct nexthop nh;