From 2f169245d3eb10b1882394591d743055ccf35ba9 Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Mon, 14 Aug 2023 20:45:10 +0800 Subject: [PATCH] Fiexd some build errors of ipfw on ubuntu 22.04 (kernel:5.19.0-1025, gcc:11.4.0), Ref #777. --- freebsd/net/if_gre.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freebsd/net/if_gre.h b/freebsd/net/if_gre.h index de3c59793..852d879ff 100644 --- a/freebsd/net/if_gre.h +++ b/freebsd/net/if_gre.h @@ -52,13 +52,13 @@ struct grehdr { struct greip { struct ip gi_ip; struct grehdr gi_gre; -} __packed; +} __packed __aligned(2); struct greudp { struct ip gi_ip; struct udphdr gi_udp; struct grehdr gi_gre; -} __packed; +} __packed __aligned(2); #endif /* INET */ #ifdef INET6