diff options
Diffstat (limited to 'bgpd/bgp_packet.h')
| -rw-r--r-- | bgpd/bgp_packet.h | 8 | 
1 files changed, 8 insertions, 0 deletions
diff --git a/bgpd/bgp_packet.h b/bgpd/bgp_packet.h index 49e401790f..1c2bafcb74 100644 --- a/bgpd/bgp_packet.h +++ b/bgpd/bgp_packet.h @@ -48,6 +48,14 @@ DECLARE_HOOK(bgp_packet_send,  #define ORF_COMMON_PART_PERMIT     0x00  #define ORF_COMMON_PART_DENY       0x20 +#define BGP_UPDATE_EOR_PKT(_peer, _afi, _safi, _s)       \ +		do { \ +			_s = bgp_update_packet_eor(_peer, _afi, _safi); \ +			if (_s) { \ +				bgp_packet_add(_peer, _s); \ +			} \ +		} while (0) +  /* Packet send and receive function prototypes. */  extern void bgp_keepalive_send(struct peer *);  extern void bgp_open_send(struct peer *);  | 
