~ubuntu-branches/ubuntu/saucy/quagga/saucy

« back to all changes in this revision

Viewing changes to bgpd/bgp_vty.c

  • Committer: Bazaar Package Importer
  • Author(s): Stephan Hermann
  • Date: 2007-09-14 09:47:54 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070914094754-kqi815lcg6n8mh51
Tags: 0.99.9-1ubuntu1
* Merged new upstream version (LP: #139376)
  - Merged debian/changelog
* Fixes a DoS and some bugs introduced in 0.99.8
  (see: http://www.quagga.net/news2.php?y=2007&m=9&d=7#id1189190760)
* Remaining Ubuntu Patches:
  - debian/rules: use bash as shell
  - debian/quagga.prerm: handle upgrades more gracefully
  - debian/patches/81_32bit_u64.dpatch: Define __u64 as uint64_t
    before including the netlink headers, since that symbol does not exist
    by default on 32 bit arches. Fixes i386/powerpc FTBFS.
  - debian/patches/83_ifaddr_defs.dpatch:
    zebra/rt_netlink.c: #include <linux/if_addr.h> and define IF[L]A_RTA
    macros, so that the file compiles again with our kernel headers.
  - debian/patches/20_ht-20061217-0.99.6-bgp-md5.dpatch: updated for
    linux kernel 2.6.20.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6496
6496
           mtype_memstr (memstrbuf, sizeof (memstrbuf),
6497
6497
                         count * sizeof (struct bgp_info)),
6498
6498
           VTY_NEWLINE);
 
6499
  if ((count = mtype_stats_alloc (MTYPE_BGP_ROUTE_EXTRA)))
 
6500
    vty_out (vty, "%ld BGP route ancillaries, using %s of memory%s", count,
 
6501
             mtype_memstr (memstrbuf, sizeof (memstrbuf),
 
6502
                           count * sizeof (struct bgp_info_extra)),
 
6503
             VTY_NEWLINE);
6499
6504
  
6500
6505
  if ((count = mtype_stats_alloc (MTYPE_BGP_STATIC)))
6501
6506
    vty_out (vty, "%ld Static routes, using %s of memory%s", count,
6533
6538
           mtype_memstr (memstrbuf, sizeof (memstrbuf), 
6534
6539
                         count * sizeof(struct attr)), 
6535
6540
           VTY_NEWLINE);
 
6541
  if ((count = mtype_stats_alloc (MTYPE_ATTR_EXTRA)))
 
6542
    vty_out (vty, "%ld BGP extra attributes, using %s of memory%s", count, 
 
6543
             mtype_memstr (memstrbuf, sizeof (memstrbuf), 
 
6544
                           count * sizeof(struct attr_extra)), 
 
6545
             VTY_NEWLINE);
6536
6546
  
6537
6547
  if ((count = attr_unknown_count()))
6538
6548
    vty_out (vty, "%ld unknown attributes%s", count, VTY_NEWLINE);
6671
6681
 
6672
6682
          vty_out (vty, "4 ");
6673
6683
 
6674
 
          vty_out (vty, "%5d %7d %7d %8d %4d %4ld ",
 
6684
          vty_out (vty, "%5d %7d %7d %8d %4d %4lu ",
6675
6685
                   peer->as,
6676
6686
                   peer->open_in + peer->update_in + peer->keepalive_in
6677
6687
                   + peer->notify_in + peer->refresh_in + peer->dynamic_cap_in,
6678
6688
                   peer->open_out + peer->update_out + peer->keepalive_out
6679
6689
                   + peer->notify_out + peer->refresh_out
6680
6690
                   + peer->dynamic_cap_out,
6681
 
                   0, 0, peer->obuf->count);
 
6691
                   0, 0, (unsigned long)peer->obuf->count);
6682
6692
 
6683
6693
          vty_out (vty, "%8s", 
6684
6694
                   peer_uptime (peer->uptime, timebuf, BGP_UPTIME_LEN));
7393
7403
  /* Packet counts. */
7394
7404
  vty_out (vty, "  Message statistics:%s", VTY_NEWLINE);
7395
7405
  vty_out (vty, "    Inq depth is 0%s", VTY_NEWLINE);
7396
 
  vty_out (vty, "    Outq depth is %ld%s", p->obuf->count, VTY_NEWLINE);
 
7406
  vty_out (vty, "    Outq depth is %lu%s", (unsigned long)p->obuf->count, VTY_NEWLINE);
7397
7407
  vty_out (vty, "                         Sent       Rcvd%s", VTY_NEWLINE);
7398
7408
  vty_out (vty, "    Opens:         %10d %10d%s", p->open_out, p->open_in, VTY_NEWLINE);
7399
7409
  vty_out (vty, "    Notifications: %10d %10d%s", p->notify_out, p->notify_in, VTY_NEWLINE);