* Size field is set to the size of the stream passed.
*
* @param s the stream containing the packet
- * @return the size of the stream
*/
-int bgp_packet_set_size(struct stream *s)
+void bgp_packet_set_size(struct stream *s)
{
int cp;
/* Preserve current pointer. */
cp = stream_get_endp(s);
stream_putw_at(s, BGP_MARKER_SIZE, cp);
-
- return cp;
}
/*
bgp_packet_set_marker(s, BGP_MSG_KEEPALIVE);
/* Set packet size. */
- (void)bgp_packet_set_size(s);
+ bgp_packet_set_size(s);
/* Dump packet if debug option is set. */
/* bgp_packet_dump (s); */
}
/* Set BGP packet length. */
- (void)bgp_packet_set_size(s);
+ bgp_packet_set_size(s);
if (bgp_debug_neighbor_events(peer))
zlog_debug(
}
/* Set packet size. */
- (void)bgp_packet_set_size(s);
+ bgp_packet_set_size(s);
if (bgp_debug_neighbor_events(peer)) {
if (!orf_refresh)
}
/* Set packet size. */
- (void)bgp_packet_set_size(s);
+ bgp_packet_set_size(s);
/* Add packet to the peer. */
bgp_packet_add(peer, s);
extern void bgp_check_update_delay(struct bgp *);
extern int bgp_packet_set_marker(struct stream *s, uint8_t type);
-extern int bgp_packet_set_size(struct stream *s);
+extern void bgp_packet_set_size(struct stream *s);
extern int bgp_generate_updgrp_packets(struct thread *);
extern int bgp_process_packet(struct thread *);