summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_packet.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2019-05-10 19:29:01 +0200
committerDavid Lamparter <equinox@diac24.net>2019-07-03 16:59:12 +0200
commit6fd04594bb36321158558326993d00b760d1a51f (patch)
tree5d983d6fe2a08f10d2ae3710b218b2c6e4c0c08d /bgpd/bgp_packet.h
parentbgpd: add & use bgp packet dump hook (diff)
downloadfrr-6fd04594bb36321158558326993d00b760d1a51f.tar.xz
frr-6fd04594bb36321158558326993d00b760d1a51f.zip
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 <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_packet.h')
-rw-r--r--bgpd/bgp_packet.h5
1 files changed, 5 insertions, 0 deletions
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