summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2007-09-30 13:28:10 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2007-09-30 13:28:10 +0000
commitcf3e5d5c45899c4bfcde570fa16ffcc9ca7cc157 (patch)
tree4759af987a3c6ba20823cea8e33b27c8b9ac0e8a /usr.sbin/ospfd
parent3985bddbec0753eebdf14e6cc26fe077823c9211 (diff)
When printing the config always include the interface IP address.
Without this multiple networks on one interface could not be distinguished. OK norby@
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r--usr.sbin/ospfd/printconf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ospfd/printconf.c b/usr.sbin/ospfd/printconf.c
index d71aa2ef9c5..ad827965444 100644
--- a/usr.sbin/ospfd/printconf.c
+++ b/usr.sbin/ospfd/printconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printconf.c,v 1.10 2007/06/19 16:45:15 reyk Exp $ */
+/* $OpenBSD: printconf.c,v 1.11 2007/09/30 13:28:09 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -113,7 +113,7 @@ print_iface(struct iface *iface)
{
struct auth_md *md;
- printf("\tinterface %s {\n", iface->name);
+ printf("\tinterface %s:%s {\n", iface->name, inet_ntoa(iface->addr));
printf("\t\thello-interval %d\n", iface->hello_interval);
printf("\t\tmetric %d\n", iface->metric);