From ea6c0dce0ae5318c29748079bac98f13ab717a06 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 29 Dec 2011 20:40:17 +0100 Subject: BGP: Print interface with protocol info --- proto/bgp/bgp.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3