[prev in list] [next in list] [prev in thread] [next in thread]
List: bird-users
Subject: [PATCH 4/4] BGP: Print interface with protocol info
From: Matthias Schiffer <mschiffer () universe-factory ! net>
Date: 2011-12-29 21:56:47
Message-ID: ea6c0dce0ae5318c29748079bac98f13ab717a06.1325194666.git.mschiffer () universe-factory ! net
[Download RAW message or body]
Signed-off-by: Matthias Schiffer <mschiffer@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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic