From 6fd04594bb36321158558326993d00b760d1a51f Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 10 May 2019 19:29:01 +0200 Subject: bgpd: add packet send hook Unlike MRT dumps, BMP also provides packets sent by the router. Add another hook for that. Signed-off-by: David Lamparter --- bgpd/bgp_packet.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bgpd/bgp_packet.h') diff --git a/bgpd/bgp_packet.h b/bgpd/bgp_packet.h index 91031589a..e8eacee58 100644 --- a/bgpd/bgp_packet.h +++ b/bgpd/bgp_packet.h @@ -28,6 +28,11 @@ DECLARE_HOOK(bgp_packet_dump, struct stream *s), (peer, type, size, s)) +DECLARE_HOOK(bgp_packet_send, + (struct peer *peer, uint8_t type, bgp_size_t size, + struct stream *s), + (peer, type, size, s)) + #define BGP_NLRI_LENGTH 1U #define BGP_TOTAL_ATTR_LEN 2U #define BGP_UNFEASIBLE_LEN 2U -- cgit v1.2.3