summaryrefslogtreecommitdiffstats
path: root/proto/bgp/bgp.c
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-12-29 20:40:17 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-12-29 21:54:00 +0100
commitea6c0dce0ae5318c29748079bac98f13ab717a06 (patch)
tree8c66d7985ff38ba495d1af264a87868b3db93163 /proto/bgp/bgp.c
parentec3b71ae00bfab2fcaa31425a4f9de097389f43a (diff)
downloadbird-ea6c0dce0ae5318c29748079bac98f13ab717a06.tar
bird-ea6c0dce0ae5318c29748079bac98f13ab717a06.zip
BGP: Print interface with protocol infoll-peering
Diffstat (limited to 'proto/bgp/bgp.c')
-rw-r--r--proto/bgp/bgp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/bgp/bgp.c b/proto/bgp/bgp.c
index 67594c7..59468c3 100644
--- a/proto/bgp/bgp.c
+++ b/proto/bgp/bgp.c
@@ -1151,6 +1151,9 @@ bgp_show_proto_info(struct proto *P)
p->rs_client ? " route-server" : "",
p->as4_session ? " AS4" : "");
cli_msg(-1006, " Source address: %I", p->source_addr);
+ if (p->neigh && p->neigh->iface)
+ cli_msg(-1006, " Interface: %s%s",
+ p->neigh->iface->name, (*p->cf->interface) ? " (fixed)" : "");
if (p->cf->route_limit)
cli_msg(-1006, " Route limit: %d/%d",
p->p.stats.imp_routes, p->cf->route_limit);