diff options
| author | David Lamparter <equinox@diac24.net> | 2019-05-10 19:29:01 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-07-03 16:59:12 +0200 | 
| commit | 6fd04594bb36321158558326993d00b760d1a51f (patch) | |
| tree | 5d983d6fe2a08f10d2ae3710b218b2c6e4c0c08d /bgpd/bgp_packet.h | |
| parent | 584470fb5fc611580367ff2cf15b3ab8e07ef92c (diff) | |
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.h | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/bgpd/bgp_packet.h b/bgpd/bgp_packet.h index 91031589a7..e8eacee589 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  | 
