summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_evpn.c
diff options
context:
space:
mode:
authorRenato Westphal <renato@opensourcerouting.org>2020-08-19 12:36:13 +0200
committerGitHub <noreply@github.com>2020-08-19 12:36:13 +0200
commit4fe5bc8c6282b58cbd9206146bb38e983f815de8 (patch)
treec47ee6388e6f59ebcfb554d0d7db3a51d03e5c28 /bgpd/bgp_evpn.c
parentMerge pull request #5702 from vishaldhingra/bgp_nb (diff)
parentbgpd: Use sizeof() in bgp_dump_attr() (diff)
downloadfrr-4fe5bc8c6282b58cbd9206146bb38e983f815de8.tar.xz
frr-4fe5bc8c6282b58cbd9206146bb38e983f815de8.zip
Merge pull request #6943 from ton31337/fix/replace_sizeof_instead_of_constant_for_bgp_dump_attr
bgpd: Use sizeof() in bgp_dump_attr()
Diffstat (limited to 'bgpd/bgp_evpn.c')
-rw-r--r--bgpd/bgp_evpn.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/bgpd/bgp_evpn.c b/bgpd/bgp_evpn.c
index 4a5d5c3b6..54593497c 100644
--- a/bgpd/bgp_evpn.c
+++ b/bgpd/bgp_evpn.c
@@ -2836,7 +2836,7 @@ static int bgp_evpn_route_rmac_self_check(struct bgp *bgp_vrf,
char buf1[PREFIX_STRLEN];
char attr_str[BUFSIZ] = {0};
- bgp_dump_attr(pi->attr, attr_str, BUFSIZ);
+ bgp_dump_attr(pi->attr, attr_str, sizeof(attr_str));
zlog_debug("%s: bgp %u prefix %s with attr %s - DENIED due to self mac",
__func__, bgp_vrf->vrf_id,
@@ -5190,7 +5190,8 @@ int bgp_filter_evpn_routes_upon_martian_nh_change(struct bgp *bgp)
char attr_str[BUFSIZ] = {0};
bgp_dump_attr(pi->attr,
- attr_str, BUFSIZ);
+ attr_str,
+ sizeof(attr_str));
zlog_debug(
"%u: prefix %pRN with attr %s - DENIED due to martian or self nexthop",