-/* $OpenBSD: bgpd.h,v 1.338 2018/09/09 11:00:51 benno Exp $ */
+/* $OpenBSD: bgpd.h,v 1.339 2018/09/10 11:01:15 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
void as_sets_insert(struct as_set_head *, struct as_set *);
struct as_set *as_sets_lookup(struct as_set_head *, const char *);
void as_sets_free(struct as_set_head *);
-void print_as_sets(struct as_set_head *);
+void as_sets_print(struct as_set_head *);
int as_sets_send(struct imsgbuf *, struct as_set_head *);
void as_sets_mark_dirty(struct as_set_head *, struct as_set_head *);
-/* $OpenBSD: printconf.c,v 1.116 2018/09/09 13:22:41 claudio Exp $ */
+/* $OpenBSD: printconf.c,v 1.117 2018/09/10 11:01:15 benno Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
if (conf->flags & BGPD_FLAG_NEXTHOP_DEFAULT)
printf("nexthop qualify via default\n");
printf("fib-priority %hhu", conf->fib_priority);
+ printf("\n\n");
}
void
else
printf(" %d\n", MRT2MC(m)->ReopenTimerInterval);
}
+ if (!LIST_EMPTY(conf->mrt))
+ printf("\n");
}
void
struct rdomain *rd;
print_mainconf(conf);
- printf("\n");
print_prefixsets(conf->prefixsets);
- print_as_sets(conf->as_sets);
- printf("\n");
+ as_sets_print(conf->as_sets);
TAILQ_FOREACH(n, net_l, entry)
print_network(&n->net, "");
- printf("\n");
+ if (!SIMPLEQ_EMPTY(rdom_l))
+ printf("\n");
SIMPLEQ_FOREACH(rd, rdom_l, entry)
print_rdomain(rd);
printf("\n");
}
printf("\n");
print_mrt(conf, 0, 0, "", "");
- printf("\n");
print_groups(conf, peer_l);
- printf("\n");
TAILQ_FOREACH(r, rules_l, entry)
print_rule(peer_l, r);
}
-/* $OpenBSD: rde_sets.c,v 1.2 2018/09/08 09:29:25 claudio Exp $ */
+/* $OpenBSD: rde_sets.c,v 1.3 2018/09/10 11:01:15 benno Exp $ */
/*
* Copyright (c) 2018 Claudio Jeker <claudio@openbsd.org>
}
void
-print_as_sets(struct as_set_head *as_sets)
+as_sets_print(struct as_set_head *as_sets)
{
struct as_set *aset;
size_t i;