Fix GTP-U header in 4x IPv4 vector encapsulation
[vpp.git] / src / plugins / gtpu / gtpu_encap.c
index 8ad53c5..5c37f4d 100644 (file)
@@ -308,7 +308,7 @@ gtpu_encap_inline (vlib_main_t * vm,
              new_l2 = clib_host_to_net_u16 (vlib_buffer_length_in_chain(vm, b2)
                                             - sizeof (*ip4_2) - sizeof(*udp2));
              gtpu2->length = new_l2;
-             gtpu3 = (gtpu_header_t *)(udp1+3);
+             gtpu3 = (gtpu_header_t *)(udp3+1);
              new_l3 = clib_host_to_net_u16 (vlib_buffer_length_in_chain(vm, b3)
                                             - sizeof (*ip4_3) - sizeof(*udp3));
              gtpu3->length = new_l3;