summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospf6d/lsreq.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2007-10-16 20:26:04 +0000
committerclaudio <claudio@openbsd.org>2007-10-16 20:26:04 +0000
commit17817b5073a9d608517c6ce79e30bcdc98e9b488 (patch)
tree1a799bcc5ab74e8a5ef999d7de18c99a40aea7da /usr.sbin/ospf6d/lsreq.c
parentsync the synopsis and usage of commands (diff)
downloadwireguard-openbsd-17817b5073a9d608517c6ce79e30bcdc98e9b488.tar.xz
wireguard-openbsd-17817b5073a9d608517c6ce79e30bcdc98e9b488.zip
correctly send lsreq, there is no need to change the byte-order of the lsa type.
Diffstat (limited to 'usr.sbin/ospf6d/lsreq.c')
-rw-r--r--usr.sbin/ospf6d/lsreq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ospf6d/lsreq.c b/usr.sbin/ospf6d/lsreq.c
index 40ea4d25511..318f57ac063 100644
--- a/usr.sbin/ospf6d/lsreq.c
+++ b/usr.sbin/ospf6d/lsreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lsreq.c,v 1.2 2007/10/10 14:09:25 claudio Exp $ */
+/* $OpenBSD: lsreq.c,v 1.3 2007/10/16 20:26:04 claudio Exp $ */
/*
* Copyright (c) 2004, 2005, 2007 Esben Norby <norby@openbsd.org>
@@ -65,7 +65,8 @@ send_ls_req(struct nbr *nbr)
buf->wpos + sizeof(struct ls_req_hdr) < buf->max -
MD5_DIGEST_LENGTH; le = nle) {
nbr->ls_req = nle = TAILQ_NEXT(le, entry);
- ls_req_hdr.type = htonl(le->le_lsa->type);
+ ls_req_hdr.zero = 0;
+ ls_req_hdr.type = le->le_lsa->type;
ls_req_hdr.ls_id = le->le_lsa->ls_id;
ls_req_hdr.adv_rtr = le->le_lsa->adv_rtr;
if (buf_add(buf, &ls_req_hdr, sizeof(ls_req_hdr)))