summaryrefslogtreecommitdiff
path: root/bgpd/bgp_updgrp_packet.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2017-11-08 12:51:16 -0500
committerQuentin Young <qlyoung@cumulusnetworks.com>2017-12-01 13:51:06 -0500
commit2d34fb80b81c929bcf0d2524b0f2383ee01ea5dc (patch)
tree1322d2443437dc9afbe112152c0a6c9745e89a71 /bgpd/bgp_updgrp_packet.c
parent493472ba8ecb44f21bc9cd85c1307262648d5bc3 (diff)
*: don't use deprecated stream.h macros
Some of the deprecated stream.h macros see such little use that we may as well just remove them and use the non-deprecated macros. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'bgpd/bgp_updgrp_packet.c')
-rw-r--r--bgpd/bgp_updgrp_packet.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_updgrp_packet.c b/bgpd/bgp_updgrp_packet.c
index de4a85ca24..b63dfbed0a 100644
--- a/bgpd/bgp_updgrp_packet.c
+++ b/bgpd/bgp_updgrp_packet.c
@@ -962,7 +962,7 @@ struct bpacket *subgroup_withdraw_packet(struct update_subgroup *subgrp)
addpath_tx_id = adj->addpath_tx_id;
space_remaining =
- STREAM_REMAIN(s) - BGP_MAX_PACKET_SIZE_OVERFLOW;
+ STREAM_WRITEABLE(s) - BGP_MAX_PACKET_SIZE_OVERFLOW;
space_needed =
BGP_NLRI_LENGTH + addpath_overhead + BGP_TOTAL_ATTR_LEN
+ bgp_packet_mpattr_prefix_size(afi, safi, &rn->p);