diff options
author | Denis Ovsienko <pilot@etcnet.org> | 2009-04-30 08:42:47 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2009-04-30 08:42:47 -0700 |
commit | f8e014a9d8cada7754b3f562c32fc4992469daa7 (patch) | |
tree | 4a5be0e117c49621e3d9a30a159b66396507c47a /bgpd/bgp_route.c | |
parent | c261f897d895183e3ee0dac101c141fb38a3b353 (diff) | |
download | quagga-f8e014a9d8cada7754b3f562c32fc4992469daa7.tar.bz2 quagga-f8e014a9d8cada7754b3f562c32fc4992469daa7.tar.xz |
Handle large ASN print formatting
"%d" -> "%u" 4-byte ASN corrections. Prevent negative number when ASN is
above 2^31.
Diffstat (limited to 'bgpd/bgp_route.c')
-rw-r--r-- | bgpd/bgp_route.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c index ac2fd99c..0d5f98b9 100644 --- a/bgpd/bgp_route.c +++ b/bgpd/bgp_route.c @@ -796,7 +796,7 @@ bgp_announce_check (struct bgp_info *ri, struct peer *peer, struct prefix *p, { if (BGP_DEBUG (filter, FILTER)) zlog (peer->log, LOG_DEBUG, - "%s [Update:SEND] suppress announcement to peer AS %d is AS path.", + "%s [Update:SEND] suppress announcement to peer AS %u is AS path.", peer->host, peer->as); return 0; } @@ -809,7 +809,7 @@ bgp_announce_check (struct bgp_info *ri, struct peer *peer, struct prefix *p, { if (BGP_DEBUG (filter, FILTER)) zlog (peer->log, LOG_DEBUG, - "%s [Update:SEND] suppress announcement to peer AS %d is AS path.", + "%s [Update:SEND] suppress announcement to peer AS %u is AS path.", peer->host, bgp->confed_id); return 0; @@ -1125,7 +1125,7 @@ bgp_announce_check_rsclient (struct bgp_info *ri, struct peer *rsclient, { if (BGP_DEBUG (filter, FILTER)) zlog (rsclient->log, LOG_DEBUG, - "%s [Update:SEND] suppress announcement to peer AS %d is AS path.", + "%s [Update:SEND] suppress announcement to peer AS %u is AS path.", rsclient->host, rsclient->as); return 0; } @@ -5912,7 +5912,7 @@ route_vty_out_detail (struct vty *vty, struct bgp *bgp, struct prefix *p, if (CHECK_FLAG (binfo->flags, BGP_INFO_STALE)) vty_out (vty, ", (stale)"); if (CHECK_FLAG (attr->flag, ATTR_FLAG_BIT (BGP_ATTR_AGGREGATOR))) - vty_out (vty, ", (aggregated by %d %s)", + vty_out (vty, ", (aggregated by %u %s)", attr->extra->aggregator_as, inet_ntoa (attr->extra->aggregator_addr)); if (CHECK_FLAG (binfo->peer->af_flags[afi][safi], PEER_FLAG_REFLECTOR_CLIENT)) |