From fdfcfe47842595d6217dbf0a41d4d598d5493b66 Mon Sep 17 00:00:00 2001 From: Esben Norby Date: Fri, 27 May 2005 05:56:35 +0000 Subject: Virtual link support. ok claudio@ --- usr.sbin/ospfd/hello.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.sbin/ospfd') diff --git a/usr.sbin/ospfd/hello.c b/usr.sbin/ospfd/hello.c index 005143c3479..c35418c9423 100644 --- a/usr.sbin/ospfd/hello.c +++ b/usr.sbin/ospfd/hello.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hello.c,v 1.6 2005/05/26 19:54:49 norby Exp $ */ +/* $OpenBSD: hello.c,v 1.7 2005/05/27 05:56:34 norby Exp $ */ /* * Copyright (c) 2005 Claudio Jeker @@ -58,10 +58,10 @@ send_hello(struct iface *iface) break; case IF_TYPE_NBMA: case IF_TYPE_POINTOMULTIPOINT: + /* XXX not supported */ + break; case IF_TYPE_VIRTUALLINK: - /* XXX these networks need to be preconfigured */ - /* dst.sin_addr.s_addr = nbr->addr.s_addr; */ - inet_aton(AllSPFRouters, &dst.sin_addr); + dst.sin_addr = iface->dst; break; default: fatalx("send_hello: unknown interface type"); @@ -188,6 +188,7 @@ recv_hello(struct iface *iface, struct in_addr src, u_int32_t rtr_id, char *buf, if (!nbr) nbr = nbr_new(rtr_id, iface, 0); + /* actually the neighbor address shouldn't be stored on virtual links */ nbr->addr.s_addr = src.s_addr; nbr->options = hello.opts; -- cgit v1.2.3