diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-01-24 10:32:13 +0200 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-02-01 23:07:56 +0200 |
| commit | b1d7888f9b58cf129c6d9a3317035a81b86b829c (patch) | |
| tree | aac229918b50aef92c52d4feca9d97af0c4fc505 /pceplib/pcep_utils_counters.h | |
| parent | 7461589c2e41dd33306b1d5cd23689094ac66cd7 (diff) | |
bgpd: Set attr to NULL when passing NLRI_UPDATE with treat-as-withdraw
Before this patch, we always passed `struct attr` for NLRI_UPDATE, but if we
have a situation with treat-as-withdraw (for example: malformed attribute, or
using a command like `neighbor path-attribute treat-as-withdraw`) the route
MUST be withdrawn form the BGP table.
Hence, we MUST pass attr as NULL, in this case we already have this check
under NLRI_ATTR_ARG() macro, just reuse it properly.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'pceplib/pcep_utils_counters.h')
0 files changed, 0 insertions, 0 deletions
