diff options
author | Ondrej Filip <feela@network.cz> | 2003-08-26 10:41:02 +0000 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2003-08-26 10:41:02 +0000 |
commit | c11007bc423188872d37e277fe4637094a40d90f (patch) | |
tree | f758216e0b277c3e3498e219fc76db14a33be70b /proto/ospf/ospf.h | |
parent | 1d1a3c1c2a72ef91b785f5ed08ca5ab3f001b14e (diff) |
Endian-related bug fixes sent by Krzysztof Szuster <kszuster@polbox.com>
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r-- | proto/ospf/ospf.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index d04638b1..d1085c4d 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 { |