summaryrefslogtreecommitdiffstats
path: root/proto/ospf/ospf.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2004-05-31 20:13:14 +0200
committerMartin Mares <mj@ucw.cz>2004-05-31 20:13:14 +0200
commit4ef3dccfa112faddf79fed76a539353b705702b5 (patch)
treee45517c5986ad872c97afadc040bb6d9c412f76c /proto/ospf/ospf.h
parent3cb96cd343196baabf847f5d670711162e66e298 (diff)
downloadbird-4ef3dccfa112faddf79fed76a539353b705702b5.tar
bird-4ef3dccfa112faddf79fed76a539353b705702b5.zip
The OSPF authentication type was sent in host byte order instead of of
network byte order thus breaking interoperability with other routing daemons on litte endian machines. The patch fixes this but note that this breaks compatability with older bird installations using OSPF and password authentication (Andreas)
Diffstat (limited to 'proto/ospf/ospf.h')
-rw-r--r--proto/ospf/ospf.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h
index d1085c4..8a246be 100644
--- a/proto/ospf/ospf.h
+++ b/proto/ospf/ospf.h
@@ -426,9 +426,10 @@ struct ospf_iface_patt {
int autype;
int strictnbma;
int stub;
-#define AU_NONE 0
-#define AU_SIMPLE 1
-#define AU_CRYPT 2
+/* must be in network byte order */
+#define AU_NONE htons(0)
+#define AU_SIMPLE htons(1)
+#define AU_CRYPT htons(2)
u8 password[8];
list nbma_list;
};