summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_packet.h
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-04-30 22:04:58 +0200
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-05-02 08:43:40 +0200
commiteea685b6d30b03b0924c0773b1f3563d95ee621f (patch)
tree367eb007077f597d7fa6ac3e792444d64b44545a /bgpd/bgp_packet.h
parentbgpd: Rename graceful restart constants for R-bit capabilities (diff)
downloadfrr-eea685b6d30b03b0924c0773b1f3563d95ee621f.tar.xz
frr-eea685b6d30b03b0924c0773b1f3563d95ee621f.zip
bgpd: Implement CEASE/Hard Reset notification
Also, add N-Bit (Notification) flag for Graceful Restart. This is a preparation for RFC8538. More information: https://datatracker.ietf.org/doc/html/rfc8538 Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_packet.h')
-rw-r--r--bgpd/bgp_packet.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/bgpd/bgp_packet.h b/bgpd/bgp_packet.h
index 8c2de6d62..2fd7ff64d 100644
--- a/bgpd/bgp_packet.h
+++ b/bgpd/bgp_packet.h
@@ -86,5 +86,9 @@ extern void bgp_send_delayed_eor(struct bgp *bgp);
/* Task callback to handle socket error encountered in the io pthread */
void bgp_packet_process_error(struct thread *thread);
+extern struct bgp_notify
+bgp_notify_decapsulate_hard_reset(struct bgp_notify *notify);
+extern bool bgp_notify_is_hard_reset(struct peer *peer, uint8_t code,
+ uint8_t subcode);
#endif /* _QUAGGA_BGP_PACKET_H */