summaryrefslogtreecommitdiff
path: root/ripd/rip_debug.c
diff options
context:
space:
mode:
authorAlexander Chernavin <achernavin@netgate.com>2022-10-04 12:38:54 +0000
committerAlexander Chernavin <achernavin@netgate.com>2022-10-11 10:45:06 +0000
commit05ab8ceda47773d57e33d12d3ede7bab67ba01ac (patch)
tree54d961c2ce07080d12d7c89669e9e0e37d905574 /ripd/rip_debug.c
parentafd4d90111125e35a6023a2ca27512396a57a33a (diff)
bgpd: fix "bgp max-med on-startup"
Currently, if `bgp max-med on-startup` is configured, after BGP session is established for the first time, a timer for the specified time is started. When the timer is expired, an UPDATE message should be sent to reflect changes in the routes' MED value. The problem is that the routes are being suppressed because based on the attributes they look like they have not changed. However, in the case of max-med, the value is copied to the packet directly from `bgp->maxmed_value`, not from the attributes. Thus, changes in this case cannot be detected by comparing attributes. With this fix, avoid route suppressing when the `max-med on-startup` timer expires and initiates an UPDATE. Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Diffstat (limited to 'ripd/rip_debug.c')
0 files changed, 0 insertions, 0 deletions