diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-16 20:26:05 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-10-16 20:26:05 +0000 |
commit | b7cb82aa35961a9cabe16578225b4e2f9f9eb4ad (patch) | |
tree | 8eb608323b9852078becc9fec21fda1129df43eb /usr.sbin | |
parent | ad973e250e03ec653b913c63eb438ad58314178d (diff) |
correctly send lsreq, there is no need to change the byte-order of the lsa type.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ospf6d/lsreq.c | 5 |
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))) |