summaryrefslogtreecommitdiff
path: root/usr.sbin/dvmrpd/parse.y
diff options
context:
space:
mode:
authorMichele Marchetto <michele@cvs.openbsd.org>2007-03-21 19:33:49 +0000
committerMichele Marchetto <michele@cvs.openbsd.org>2007-03-21 19:33:49 +0000
commit9e6877de3b929e1b747eea314af66f3e3485cee4 (patch)
tree1b42274cd8d2eb79eac2372861643a8238982f17 /usr.sbin/dvmrpd/parse.y
parent7018c85f8793aaac7aea0c4fdbcf578c9889d37b (diff)
Added code to parse unicast routes learned from route report packets.
Now we are able to select correctly designated forwarders and downstream dependent routers per interface. Tested and OK norby@
Diffstat (limited to 'usr.sbin/dvmrpd/parse.y')
-rw-r--r--usr.sbin/dvmrpd/parse.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/dvmrpd/parse.y b/usr.sbin/dvmrpd/parse.y
index e5fcbd948e3..b521adad2a1 100644
--- a/usr.sbin/dvmrpd/parse.y
+++ b/usr.sbin/dvmrpd/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.3 2006/10/25 18:55:41 henning Exp $ */
+/* $OpenBSD: parse.y,v 1.4 2007/03/21 19:33:48 michele Exp $ */
/*
* Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org>
@@ -631,6 +631,7 @@ parse_config(char *filename, int opts)
gettimeofday(&now, NULL);
conf->gen_id = now.tv_sec;
conf->opts = opts;
+ RB_INIT(&conf->src_list);
if (check_file_secrecy(fileno(fin), filename)) {
fclose(fin);