diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-07 10:17:52 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-13 11:30:47 +0300 |
| commit | b1b3fc5fe0c3d01e8f82ab33c2d62091d63b544a (patch) | |
| tree | 845345a9d42c38a1f6b95d7ef24b5a5b853a68f8 | |
| parent | 1c70a617f86efee7e968e56192d267a908c2d596 (diff) | |
bgpd: Move BGP_CAP_LLGR_MIN_PACKET_LEN to headers file
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
| -rw-r--r-- | bgpd/bgp_open.c | 12 | ||||
| -rw-r--r-- | bgpd/bgp_open.h | 13 |
2 files changed, 13 insertions, 12 deletions
diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c index da70f67c18..6ee5b5dc5c 100644 --- a/bgpd/bgp_open.c +++ b/bgpd/bgp_open.c @@ -576,18 +576,6 @@ static int bgp_capability_restart(struct peer *peer, static int bgp_capability_llgr(struct peer *peer, struct capability_header *caphdr) { -/* - * +--------------------------------------------------+ - * | Address Family Identifier (16 bits) | - * +--------------------------------------------------+ - * | Subsequent Address Family Identifier (8 bits) | - * +--------------------------------------------------+ - * | Flags for Address Family (8 bits) | - * +--------------------------------------------------+ - * | Long-lived Stale Time (24 bits) | - * +--------------------------------------------------+ - */ -#define BGP_CAP_LLGR_MIN_PACKET_LEN 7 struct stream *s = BGP_INPUT(peer); size_t end = stream_get_getp(s) + caphdr->length; diff --git a/bgpd/bgp_open.h b/bgpd/bgp_open.h index 1d005efd02..a92c56d1b5 100644 --- a/bgpd/bgp_open.h +++ b/bgpd/bgp_open.h @@ -25,6 +25,19 @@ struct graceful_restart_af { uint8_t flag; }; +/* + * +--------------------------------------------------+ + * | Address Family Identifier (16 bits) | + * +--------------------------------------------------+ + * | Subsequent Address Family Identifier (8 bits) | + * +--------------------------------------------------+ + * | Flags for Address Family (8 bits) | + * +--------------------------------------------------+ + * | Long-lived Stale Time (24 bits) | + * +--------------------------------------------------+ + */ +#define BGP_CAP_LLGR_MIN_PACKET_LEN 7 + /* Capability Code */ #define CAPABILITY_CODE_MP 1 /* Multiprotocol Extensions */ #define CAPABILITY_CODE_REFRESH 2 /* Route Refresh Capability */ |
