src/mrt_ds.c
// util funcs for rcvbuf - implement priority queue if efficiency is of concern
// rcvbuf init and free
util funcs for rcvbuf - implement priority queue if efficiency is of concern
rcvbuf init and free
util funcs for rcvbuf - implement priority queue if efficiency is of concern rcvbuf init and free
void rb_init(rcvbuf * rb) {
  rb->size = MAX_BUFFERED_PACKETS_NUM + 1;
  rb->head = 0;
  rb->tail = 0;
  memset(rb->buf, 0, sizeof(rb->buf));
}
void rb_init ( rcvbuf * rb ) { rb -> size = MAX_BUFFERED_PACKETS_NUM + 1 ; rb -> head = 0 ; rb -> tail = 0 ; memset ( rb -> buf , 0 , sizeof ( rb -> buf ) ) ; }
util funcs for rcvbuf - implement priority queue if efficiency is of concern
rcvbuf init and free
util funcs for rcvbuf - implement priority queue if efficiency is of concern rcvbuf init and free