[Edited Message Follows]

moving the buffer backwards by 14 looks correct for small packets, but for 1500 
byte packets I get `truncated-ip - 14 bytes missing` error from tcpdump. After 
the clone I'm restoring the original offset:
vlib_buffer_advance (b0, -14);
u16 n_cloned = vlib_buffer_clone (vm, bi0, (u32*)&cbi0, 2, 
VLIB_BUFFER_CLONE_HEAD_SIZE);
vlib_buffer_advance (b0, 14);
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#19176): https://lists.fd.io/g/vpp-dev/message/19176
Mute This Topic: https://lists.fd.io/mt/81938105/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to