From: Martin Mares Date: Mon, 31 May 2004 18:13:14 +0000 (+0000) Subject: The OSPF authentication type was sent in host byte order instead of of X-Git-Tag: v1.2.0~389 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ef3dccfa112faddf79fed76a539353b705702b5;p=thirdparty%2Fbird.git 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) --- diff --git a/proto/ospf/ospf.h b/proto/ospf/ospf.h index d1085c4d0..8a246bef6 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; };