summaryrefslogtreecommitdiffstats
path: root/bgpd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 18:11:21 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-09-23 18:11:21 +0200
commitb99c382167cae31082e3eed7a4bb2ddb294dbad8 (patch)
tree0aaaad32dcb53d7225851aae14389f37574c6291 /bgpd
parentRevert "zebra: use link scope for interface routes" (diff)
downloadfrr-b99c382167cae31082e3eed7a4bb2ddb294dbad8.tar.xz
frr-b99c382167cae31082e3eed7a4bb2ddb294dbad8.zip
Revert "Make route flags a 32bit field"
This reverts commit 85eda2c98520a9553bdc05c136618f9d04917e9b.
Diffstat (limited to 'bgpd')
-rw-r--r--bgpd/bgp_zebra.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c
index c3e1b76a3..15db32155 100644
--- a/bgpd/bgp_zebra.c
+++ b/bgpd/bgp_zebra.c
@@ -601,7 +601,7 @@ zebra_read_ipv4 (int command, struct zclient *zclient, zebra_size_t length,
/* Type, flags, message. */
api.type = stream_getc (s);
api.instance = stream_getw (s);
- api.flags = stream_getl (s);
+ api.flags = stream_getc (s);
api.message = stream_getc (s);
/* IPv4 prefix. */
@@ -716,7 +716,7 @@ zebra_read_ipv6 (int command, struct zclient *zclient, zebra_size_t length,
/* Type, flags, message. */
api.type = stream_getc (s);
api.instance = stream_getw (s);
- api.flags = stream_getl (s);
+ api.flags = stream_getc (s);
api.message = stream_getc (s);
/* IPv6 prefix. */
@@ -1199,7 +1199,7 @@ void
bgp_zebra_announce (struct prefix *p, struct bgp_info *info, struct bgp *bgp,
afi_t afi, safi_t safi)
{
- u_int32_t flags;
+ int flags;
u_char distance;
struct peer *peer;
struct bgp_info *mpinfo;
@@ -1620,7 +1620,7 @@ bgp_zebra_announce_table (struct bgp *bgp, afi_t afi, safi_t safi)
void
bgp_zebra_withdraw (struct prefix *p, struct bgp_info *info, safi_t safi)
{
- u_int32_t flags;
+ int flags;
struct peer *peer;
peer = info->peer;