Commit 9132313
committed
bgpd: Limit size of sent NLRIs to flowspec peers (issue 18557)
See issue 18557 for detailed description of the problem. When announcing flowspec routes, frr currently sends NLRIs up to max_packet_size.
However, flowspec NLRIs cannot exceed FLOWSPEC_NLRI_SIZELIMIT (or FLOWSPEC_NLRI_SIZELIMIT_EXTENDED).
The proposed change reduces the size of the stream in that particular case to ensure no invalid messages are sent.
Signed-off-by: Stephane Poignant <[email protected]>1 parent 9f8027b commit 9132313
1 file changed
+17
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
95 | 98 | | |
96 | 99 | | |
97 | 100 | | |
98 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
99 | 115 | | |
100 | 116 | | |
101 | 117 | | |
| |||
0 commit comments