From 1c70a617f86efee7e968e56192d267a908c2d596 Mon Sep 17 00:00:00 2001 From: Donatas Abraitis Date: Thu, 7 Sep 2023 10:16:22 +0300 Subject: [PATCH] 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 --- bgpd/bgp_open.h | 4 ++-- 1 file 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; };