X-Git-Url: https://git.ucc.asn.au/?p=tpg%2Facess2.git;a=blobdiff_plain;f=KernelLand%2FModules%2FIPStack%2Ficmpv6.h;fp=KernelLand%2FModules%2FIPStack%2Ficmpv6.h;h=66f61341f175773cd25255822cfe346a430881b7;hp=bda70b13003c00a77c93ff2bc506423fe64d8750;hb=845b6f9d90bb87b5e760e4d49aa93b0e003ab750;hpb=67a7fe2bb79eceaf10c572a99bd8345c4e81cf5b diff --git a/KernelLand/Modules/IPStack/icmpv6.h b/KernelLand/Modules/IPStack/icmpv6.h index bda70b13..66f61341 100644 --- a/KernelLand/Modules/IPStack/icmpv6.h +++ b/KernelLand/Modules/IPStack/icmpv6.h @@ -26,32 +26,32 @@ typedef struct { Uint16 RouterLifetime; // Seconds, life time as a default router (wtf does that mean?) Uint32 ReachableTime; Uint32 RetransTimer; // Miliseconds, time between transmissions of RAs from this router - Uint8 Options[]; + Uint8 Options[0]; } PACKED tICMPv6_RA; typedef struct { Uint32 Reserved; tIPv6 TargetAddress; - Uint8 Options[]; + Uint8 Options[0]; } PACKED tICMPv6_NS; typedef struct { Uint32 Flags; tIPv6 TargetAddress; - Uint8 Options[]; + Uint8 Options[0]; } PACKED tICMPv6_NA; typedef struct { Uint32 Reserved; tIPv6 TargetAddress; tIPv6 DestinationAddress; - Uint8 Options[]; + Uint8 Options[0]; } PACKED tICMPv6_Redirect; typedef struct { Uint8 Type; // 1,2 Uint8 Length; // Length of field in units of 8 bytes (incl header), typically 1 - Uint8 Address[]; + Uint8 Address[0]; } PACKED tICMPv6_Opt_LinkAddr; typedef struct { @@ -62,7 +62,7 @@ typedef struct { Uint32 ValidLifetime; Uint32 PreferredLifetime; Uint32 _reserved2; - tIPv6 Prefix[]; + tIPv6 Prefix[0]; } PACKED tICMPv6_Opt_Prefix; typedef struct { @@ -70,7 +70,7 @@ typedef struct { Uint8 Length; Uint16 _rsvd1; Uint32 _rsvd2; - Uint8 Data[]; // All or part of the redirected message (not exceeding MTU) + Uint8 Data[0]; // All or part of the redirected message (not exceeding MTU) } PACKED tICMPv6_Opt_Redirect; typedef struct {