[PATCH 4/4] BGP: Print interface with protocol info

Matthias Schiffer mschiffer at universe-factory.net
Thu Dec 29 22:56:47 CET 2011


Signed-off-by: Matthias Schiffer <mschiffer at universe-factory.net>
---
 proto/bgp/bgp.c |    3 +++
 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);
-- 
1.7.8.1




More information about the Bird-users mailing list