I retrieve the Buffer into storage parameter, If I do some modifications on the retrieved buffer, will that reflect in the NB associated with this buffer.
Here is what I am trying to do.
currNB = NET_BUFFER_LIST_FIRST_NB(NBL);
total_nb_length = NET_BUFFER_DATA_LENGTH(currNB);
packetData = (PUCHAR)NdisAllocateMemoryWithTagPriority(pAdapt->FilterHandle,
total_nb_length,
TAG,
HighPoolPriority);
if (packetData == NULL)
{
break;
}
bufferAddress = NdisGetDataBuffer(currNB, total_nb_length, packetData, 1, 0);
if (bufferAddress == NULL)
{
break;
}
packetData[total_nb_length - 1] = 10 // Example Sequence Number.
NdisFSendNetBufferLists(pAdapt->FilterHandle, NBL, portNumber, sendFlags);