summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_open.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2024-05-23 22:02:03 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2024-05-24 09:35:42 +0200
commit048609103c339ef1264ce9ff003647974323d341 (patch)
tree404630138a60f5f9adfe7799d5928ffbcac87c58 /bgpd/bgp_open.h
parentMerge pull request #16069 from louis-6wind/fix-show-isis-algo (diff)
downloadfrr-048609103c339ef1264ce9ff003647974323d341.tar.xz
frr-048609103c339ef1264ce9ff003647974323d341.zip
bgpd: Add sanity check for capability lengths before processing them
This is for CAPABILITY messages, not for OPEN message capabilities. Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_open.h')
-rw-r--r--bgpd/bgp_open.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bgpd/bgp_open.h b/bgpd/bgp_open.h
index a01e49ceb..3a8cba9b7 100644
--- a/bgpd/bgp_open.h
+++ b/bgpd/bgp_open.h
@@ -112,5 +112,7 @@ extern as_t peek_for_as4_capability(struct peer *peer, uint16_t length);
extern const struct message capcode_str[];
extern const struct message orf_type_str[];
extern const struct message orf_mode_str[];
+extern const size_t cap_minsizes[];
+extern const size_t cap_modsizes[];
#endif /* _QUAGGA_BGP_OPEN_H */