Commit 7bd53d7
committed
Fix invalid nexthop advertisement with nexthop-unchanged
When we apply nexthop-unchanged action to the locally-originated route
with unspecified nexthop (0.0.0.0 or ::), we advertise the path with
unspecified nexthop. This may ends up with the session shutdown with
Invalid Update Message Notification (only tested with FRR 10.2.1).
Fix this issue by setting table.PolicyOptions.OldNextHop to the local
peering address when the path is locally-originated and has an
unspecified nexthop.
Signed-off-by: Yutaro Hayakawa <[email protected]>1 parent 62938a8 commit 7bd53d7
1 file changed
+11
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
781 | 781 | | |
782 | 782 | | |
783 | 783 | | |
784 | | - | |
785 | | - | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
| 789 | + | |
| 790 | + | |
| 791 | + | |
| 792 | + | |
| 793 | + | |
| 794 | + | |
786 | 795 | | |
787 | 796 | | |
788 | 797 | | |
| |||
0 commit comments