“It depends...”

If you’re using DPDK devices and a 1500-byte MTU, the answer is almost 
certainly “no.” Simply set b->current_length += delta, fix checksums, done.

The worst-case: added data spans the end of the current packet buffer chain and 
the beginning of a new buffer. If you need to go there, ping me and I’ll point 
you to some examples.

Thanks… Dave

From: vpp-dev-boun...@lists.fd.io [mailto:vpp-dev-boun...@lists.fd.io] On 
Behalf Of Abhilash Lakshmeshwar
Sent: Monday, November 20, 2017 9:03 AM
To: vpp-dev@lists.fd.io
Subject: [vpp-dev] vpp payload modification

Hello,

I am working on vpp version 17.07, i have a case where in i need to change the 
payload of a packet, if the size of payload is increased  ( say like increased 
by 10 bytes) from the original one do i have to reallocate the buffer to 
accommodate the extra bytes  ?

Right now the modified payload packet has truncated data at the end. i have 
modified the ip length and the checksum according to the new payload.

Am i missing anything , any pointers would be helpful.

Thanks,
Abhilash


_______________________________________________
vpp-dev mailing list
vpp-dev@lists.fd.io
https://lists.fd.io/mailman/listinfo/vpp-dev

Reply via email to