diff options
| author | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-04 15:56:20 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas.abraitis@gmail.com> | 2022-02-04 15:56:20 +0200 |
| commit | b53e67a389573b9d95a563331752e4e8b729c08f (patch) | |
| tree | 46807e2486e0f603cfa8390b404a7698801d49ac /bgpd/bgp_pbr.c | |
| parent | a89a78236cb03a2afa6dcc4227598964e6ca1a31 (diff) | |
bgpd: Use bgp_attr_[sg]et_ecommunity for struct ecommunity
This is an extra work before moving attr->ecommunity to attra_extra struct.
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'bgpd/bgp_pbr.c')
| -rw-r--r-- | bgpd/bgp_pbr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_pbr.c b/bgpd/bgp_pbr.c index c10007a593..eb9e0056cc 100644 --- a/bgpd/bgp_pbr.c +++ b/bgpd/bgp_pbr.c @@ -770,8 +770,8 @@ int bgp_pbr_build_and_validate_entry(const struct prefix *p, if (ret < 0) return -1; /* extract actiosn from flowspec ecom list */ - if (path && path->attr->ecommunity) { - ecom = path->attr->ecommunity; + if (path && bgp_attr_get_ecommunity(path->attr)) { + ecom = bgp_attr_get_ecommunity(path->attr); for (i = 0; i < ecom->size; i++) { ecom_eval = (struct ecommunity_val *) (ecom->val + (i * ECOMMUNITY_SIZE)); |
