Hi, I have two buffer chains whose starting vlib_buffer_t's are -- vlib_buffer_t* chainHead1; (let's call this chain1) vlib_buffer_t* chainHead2; (let's call this chain2) The chain1, chain2 may have one or more buffers each.
Is there any convenience function which connects the last buffer of first chain1 to the first buffer of chain2, so that the entire bigger chain can be accessed via chainHead1 as the starting point. So I need something like this -- void vlib_buffer_cat(vlib_buffer_t* chain1, vlib_buffer_t* chain2) I suppose I will have to chase the last buffer of chain1 and then connect it to the first of chain2 and then modify the chain1 first buffer contents suitably for the length, flags etc. not to forget the possible modifications in the first buffer of chain2. If someone has this already, that will save me some rookie mistakes and hours of debugging when it goofs up my packet processing at my business logic level :) Regards -Prashant
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11057): https://lists.fd.io/g/vpp-dev/message/11057 Mute This Topic: https://lists.fd.io/mt/27808613/21656 Group Owner: [email protected] Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
