From 2157bebab6b63903a53980ddedad1556a4e8f1a2 Mon Sep 17 00:00:00 2001 From: fengbojiang Date: Tue, 29 Aug 2023 16:21:37 +0800 Subject: [PATCH] Add FSTACK define in if_gre.h. --- freebsd/net/if_gre.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/freebsd/net/if_gre.h b/freebsd/net/if_gre.h index 852d879ff..6eba312c8 100644 --- a/freebsd/net/if_gre.h +++ b/freebsd/net/if_gre.h @@ -52,13 +52,22 @@ struct grehdr { struct greip { struct ip gi_ip; struct grehdr gi_gre; +#ifndef FSTACK +} __packed; +#else } __packed __aligned(2); +#endif struct greudp { struct ip gi_ip; struct udphdr gi_udp; struct grehdr gi_gre; +#ifndef FSTACK +} __packed; +#else } __packed __aligned(2); +#endif + #endif /* INET */ #ifdef INET6