summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-07-05 20:26:51 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-07-05 20:26:51 +0200
commitb082c1bfcc53b10012a427aa3b4b8281fe2f496c (patch)
treee81962318440fe905a12137f42c6f8de06b47ee5 /proto/ospf/ospf.h
parentf9bdcad4694cf80690982dfc58d28f91216c8bd0 (diff)
downloadbird-b082c1bfcc53b10012a427aa3b4b8281fe2f496c.tar
bird-b082c1bfcc53b10012a427aa3b4b8281fe2f496c.zip
Fixes OSPF on big-endians.
Hmm, #ifdef is not very typo-safe.
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index 23f21b8..2279089 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -120,7 +120,7 @@ struct ospf_area_config
struct obits
{
-#ifdef _BIG_ENDIAN
+#ifdef CPU_BIG_ENDIAN
u8 unused2:2;
u8 dc:1;
u8 ea:1;
@@ -264,7 +264,7 @@ struct ospf_hello_packet
struct immsb
{
-#ifdef _BIG_ENDIAN
+#ifdef CPU_BIG_ENDIAN
u8 padding:5;
u8 i:1;
u8 m:1;
@@ -320,7 +320,7 @@ struct ospf_lsa_header
struct vebb
{
-#ifdef _BIG_ENDIAN
+#ifdef CPU_BIG_ENDIAN
u8 padding:5;
u8 v:1;
u8 e:1;
@@ -384,7 +384,7 @@ struct ospf_lsa_ext
struct ospf_lsa_ext_etos
{
-#ifdef _BIG_ENDIAN
+#ifdef CPU_BIG_ENDIAN
u8 ebit:1;
u8 tos:7;
u8 padding1;
@@ -400,7 +400,7 @@ struct ospf_lsa_ext_etos
#define METRIC_MASK 0x00FFFFFF
struct ospf_lsa_sum_tos
{
-#ifdef _BIG_ENDIAN
+#ifdef CPU_BIG_ENDIAN
u8 tos;
u8 padding1;
u16 padding2;