From c11007bc423188872d37e277fe4637094a40d90f Mon Sep 17 00:00:00 2001 From: Ondrej Filip Date: Tue, 26 Aug 2003 10:41:02 +0000 Subject: Endian-related bug fixes sent by Krzysztof Szuster --- proto/ospf/ospf.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'proto/ospf/ospf.h') diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index d04638b..d1085c4 100644 --- a/proto/ospf/ospf.h +++ b/proto/ospf/ospf.h @@ -178,10 +178,17 @@ struct ospf_hello_packet { }; struct immsb { +#ifdef _BIG_ENDIAN + u8 padding:5; + u8 i:1; + u8 m:1; + u8 ms:1; +#else u8 ms:1; u8 m:1; u8 i:1; u8 padding:5; +#endif }; union imms { -- cgit v1.2.3