diff options
author | Renato Westphal <renato@opensourcerouting.org> | 2017-05-12 14:28:43 +0200 |
---|---|---|
committer | Renato Westphal <renato@opensourcerouting.org> | 2017-05-12 16:48:02 +0200 |
commit | 9ff63e6f55a8a66509dc917482f702faa1574fbd (patch) | |
tree | fb0093902efbc3e9047778f74fb3d51836dbd6bf /bgpd/bgp_debug.h | |
parent | lib: add labeled-unicast in safi2str() (diff) | |
download | frr-9ff63e6f55a8a66509dc917482f702faa1574fbd.tar.xz frr-9ff63e6f55a8a66509dc917482f702faa1574fbd.zip |
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>
Diffstat (limited to 'bgpd/bgp_debug.h')
-rw-r--r-- | bgpd/bgp_debug.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_debug.h b/bgpd/bgp_debug.h index 096856822..64f087a68 100644 --- a/bgpd/bgp_debug.h +++ b/bgpd/bgp_debug.h @@ -138,7 +138,7 @@ struct bgp_debug_filter extern const char *bgp_type_str[]; -extern int bgp_dump_attr (struct peer *, struct attr *, char *, size_t); +extern int bgp_dump_attr (struct attr *, char *, size_t); extern int bgp_debug_peer_updout_enabled(char *host); extern const char *bgp_notify_code_str(char); extern const char *bgp_notify_subcode_str(char, char); |