1#Diagram demonstrating wrap around in byte buffer 2#Buffer of 128 bytes, with 56 bytes free, and 28 bytes sent 3 4packetdiag ring_buffer_wrap_byte_buf { 5 node_width = 6 6 node_height = 24 7 default_fontsize = 12 8 colwidth = 128 9 10 #Initial state 11 0-39: 40 Free 12 40-111: 72 [color = lightyellow]; 13 112-127: 16 Free 14 15 #Fill up free space at the end of the buffer 16 128-167: 40 Free 17 168-255: 88 [color = lightyellow]; 18 19 #Wrap around remaining data 20 256-267: 12 [color = lightyellow]; 21 268-295: 28 Free 22 296-383: 88 [color = lightyellow]; 23} 24