diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-07 10:16:22 +0300 |
|---|---|---|
| committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2023-09-13 11:30:47 +0300 |
| commit | 1c70a617f86efee7e968e56192d267a908c2d596 (patch) | |
| tree | 73bd0bfa24dbdd8c9b792d80d2f988638ed2db89 | |
| parent | 00b365d67f4214cbb28d16ed5f66b1dffdd2295d (diff) | |
bgpd: Use explicit data types for graceful_restart_af struct
afi/safi comes as integers, but we should decode them as uint16/uint8
accordingly.
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
| -rw-r--r-- | bgpd/bgp_open.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bgpd/bgp_open.h b/bgpd/bgp_open.h index 20f5fdb22b..1d005efd02 100644 --- a/bgpd/bgp_open.h +++ b/bgpd/bgp_open.h @@ -20,8 +20,8 @@ struct capability_mp_data { }; struct graceful_restart_af { - afi_t afi; - safi_t safi; + uint16_t afi; + uint8_t safi; uint8_t flag; }; |
