Print the rdomain config option if present.
authorremi <remi@openbsd.org>
Wed, 11 Jul 2018 15:41:19 +0000 (15:41 +0000)
committerremi <remi@openbsd.org>
Wed, 11 Jul 2018 15:41:19 +0000 (15:41 +0000)
ok kn@ tb@ deraadt@ sthen@ jca@

usr.sbin/ospfd/printconf.c

index 5fd501b..576e0ac 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: printconf.c,v 1.18 2018/02/05 12:11:28 remi Exp $ */
+/*     $OpenBSD: printconf.c,v 1.19 2018/07/11 15:41:19 remi Exp $ */
 
 /*
  * Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -44,6 +44,9 @@ print_mainconf(struct ospfd_conf *conf)
        else
                printf("fib-update yes\n");
 
+       if (conf->rdomain)
+               printf("rdomain %d\n", conf->rdomain);
+
        if (conf->rfc1583compat)
                printf("rfc1583compat yes\n");
        else