]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: removed unused parameter from bgp_dump_attr()
authorRenato Westphal <renato@opensourcerouting.org>
Fri, 12 May 2017 12:28:43 +0000 (09:28 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Fri, 12 May 2017 14:48:02 +0000 (11:48 -0300)
commit9ff63e6f55a8a66509dc917482f702faa1574fbd
treefb0093902efbc3e9047778f74fb3d51836dbd6bf
parent5143a87b92fc635b05586d4a95a6e22e2cbfc397
bgpd: removed unused parameter from bgp_dump_attr()

Originally we used the 'peer' parameter for this:

  if (peer_sort (peer) == BGP_PEER_IBGP)
    snprintf (buf + strlen (buf), size - strlen (buf), ", localpref %d",
              attr->local_pref);

Now we have this:

  if (CHECK_FLAG (attr->flag, ATTR_FLAG_BIT (BGP_ATTR_LOCAL_PREF)))
    snprintf (buf + strlen (buf), size - strlen (buf), ", localpref %u",
              attr->local_pref);

Remove the now useless 'peer' parameter.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_debug.c
bgpd/bgp_debug.h
bgpd/bgp_packet.c
bgpd/bgp_updgrp_packet.c