Data Management Using Socket Buffers

Socket buffers are linked by means of the various pointers they contain with an area in memory where the data of a network packet reside, as shown in Figure 12-6. The figure assumes that we are working on a 32-bit system (the organization of a socket buffer is slightly different on a 64-bit machine, as you will see in a moment).

The basic idea of a socket buffer is to add and remove protocol headers by manipulating pointers. □ head and end point to the start and end of the area in memory where the data reside.

Continue reading here: This area may be larger than actually needed because it is not clear how big packets will be when they are synthesized

Was this article helpful?

0 0