diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-11 19:21:26 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-11 19:21:26 +0000 |
commit | a7a4a2770b0e20d60fd9b45f6d24fe13adff3808 (patch) | |
tree | ed013dc5afc37f38f02976fe19fdbf2bc4b2008f | |
parent | fae3b7dbb18a10b7413327ea75fc5322c044e458 (diff) |
The person that came up with the glorious idea to define a 24bit field should
be hanged and shot. Add a ntohl() around the area_ospf_options() call.
-rw-r--r-- | usr.sbin/ospf6d/hello.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/hello.c b/usr.sbin/ospf6d/hello.c index 4bd442298d6..56b99813595 100644 --- a/usr.sbin/ospf6d/hello.c +++ b/usr.sbin/ospf6d/hello.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hello.c,v 1.5 2007/10/11 19:02:47 claudio Exp $ */ +/* $OpenBSD: hello.c,v 1.6 2007/10/11 19:21:25 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -74,7 +74,7 @@ send_hello(struct iface *iface) hello.iface_id = iface->ifindex; hello.rtr_priority = iface->priority; - opts = area_ospf_options(iface->area); + opts = ntohl(area_ospf_options(iface->area)); hello.opts1 = (opts >> 16) & 0xff; hello.opts2 = (opts >> 8) & 0xff; hello.opts3 = opts & 0xff; |