summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2009-01-29 20:15:51 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2009-01-29 20:15:51 +0000
commitd14344e761075bb2e5430d34928005d08bfd6924 (patch)
tree834994d404f1342bfb27f24aa3e2fe1f01e7f01f /usr.sbin
parentefd918ce6935f071b56aa9112fb291bcbd9347bc (diff)
Correctly byte-swap the link state ID when building Intra-Area-Prefix
LSAs which refer to Router LSAs. ok claudio@
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ospf6d/ospfe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/ospfe.c b/usr.sbin/ospf6d/ospfe.c
index 93f949f4828..271eb7e9e7a 100644
--- a/usr.sbin/ospf6d/ospfe.c
+++ b/usr.sbin/ospf6d/ospfe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfe.c,v 1.19 2009/01/29 19:07:53 stsp Exp $ */
+/* $OpenBSD: ospfe.c,v 1.20 2009/01/29 20:15:50 stsp Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -1141,7 +1141,7 @@ orig_intra_lsa_rtr(struct iface *iface_arg)
/* LSA header */
lsa_hdr.age = htons(DEFAULT_AGE);
lsa_hdr.type = htons(LSA_TYPE_INTRA_A_PREFIX);
- lsa_hdr.ls_id = 1; /* TODO: fragmentation */
+ lsa_hdr.ls_id = htonl(1); /* TODO: fragmentation */
lsa_hdr.adv_rtr = oeconf->rtr_id.s_addr;
lsa_hdr.seq_num = htonl(INIT_SEQ_NUM);
lsa_hdr.len = htons(buf->wpos);