summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/database.c
diff options
context:
space:
mode:
authorEsben Norby <norby@cvs.openbsd.org>2005-05-27 05:51:23 +0000
committerEsben Norby <norby@cvs.openbsd.org>2005-05-27 05:51:23 +0000
commit3c055c3dae52e819d4dba90a5afef73997aa6a97 (patch)
tree17eeac1d9b8e7bf2988b94d12109e9dcdea3f0a3 /usr.sbin/ospfd/database.c
parent13f18f744d0f31d413338cddbf0112e2b219bf18 (diff)
Virtual link support.
ok claudio@
Diffstat (limited to 'usr.sbin/ospfd/database.c')
-rw-r--r--usr.sbin/ospfd/database.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/ospfd/database.c b/usr.sbin/ospfd/database.c
index 68b14ab969e..518f0277822 100644
--- a/usr.sbin/ospfd/database.c
+++ b/usr.sbin/ospfd/database.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: database.c,v 1.11 2005/05/26 19:54:49 norby Exp $ */
+/* $OpenBSD: database.c,v 1.12 2005/05/27 05:51:22 norby Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -128,8 +128,10 @@ send_db_description(struct nbr *nbr)
break;
case IF_TYPE_NBMA:
case IF_TYPE_POINTOMULTIPOINT:
+ /* XXX not supported */
+ break;
case IF_TYPE_VIRTUALLINK:
- dst.sin_addr = nbr->addr;
+ dst.sin_addr = nbr->iface->dst;
dd_hdr.iface_mtu = 0;
break;
default:
@@ -173,7 +175,6 @@ recv_db_description(struct nbr *nbr, char *buf, u_int16_t len)
buf += sizeof(dd_hdr);
len -= sizeof(dd_hdr);
-
/* db description packet sanity checks */
if (ntohs(dd_hdr.iface_mtu) > nbr->iface->mtu) {
log_warnx("recv_dd_description: invalid MTU, neighbor ID %s",