diff options
| author | 2008-12-28 20:08:31 +0000 | |
|---|---|---|
| committer | 2008-12-28 20:08:31 +0000 | |
| commit | 2773be1b6ae8f90b36ce87dd850cfbb3cbcf77d7 (patch) | |
| tree | 3b7e4f5aa4ef63f478963d510e23c83be243d7e2 /usr.sbin/ospf6d/database.c | |
| parent | First shot at originating router LSA, still a lot of XXX but seems to (diff) | |
| download | wireguard-openbsd-2773be1b6ae8f90b36ce87dd850cfbb3cbcf77d7.tar.xz wireguard-openbsd-2773be1b6ae8f90b36ce87dd850cfbb3cbcf77d7.zip | |
area_ospf_options() should not return network byte order options. Instead
the callers should take care of getting the byte order right. While there
remove the opts[123] from the hello_hdr and use LSA_24_* to handle this
nasty fields instead. Now router LSA have the correct flags set.
Diffstat (limited to 'usr.sbin/ospf6d/database.c')
| -rw-r--r-- | usr.sbin/ospf6d/database.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/database.c b/usr.sbin/ospf6d/database.c index 5000a2f7007..20c818eb55f 100644 --- a/usr.sbin/ospf6d/database.c +++ b/usr.sbin/ospf6d/database.c @@ -1,4 +1,4 @@ -/* $OpenBSD: database.c,v 1.8 2008/12/28 17:44:45 claudio Exp $ */ +/* $OpenBSD: database.c,v 1.9 2008/12/28 20:08:31 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -136,7 +136,8 @@ send_db_description(struct nbr *nbr) fatalx("send_db_description: unknown interface type"); } - dd_hdr.opts = area_ospf_options(area_find(oeconf, nbr->iface->area_id)); + dd_hdr.opts = htonl(area_ospf_options(area_find(oeconf, + nbr->iface->area_id))); dd_hdr.bits = bits; dd_hdr.dd_seq_num = htonl(nbr->dd_seq_num); |
