Changes the source of the l3 offset to a more
proper one, same as I5d9f41599ba8d8eb14ce2d9d523f82ea6e0fd10d.
Change-Id: I5ff05d7d89507ecb378a2bd62f5b149189ca9e99
Signed-off-by: Szymon Sliwa <szs@semihalf.com>
esp_replay_advance(sa0, seq);
}
- /* FIXME ip header */
- ih4 = (ip4_header_t *) (b0->data + sizeof(ethernet_header_t));
+ ih4 = (ip4_header_t *) (b0->data + vnet_buffer(b0)->l3_hdr_offset);
vlib_buffer_advance (b0, sizeof (esp_header_t) + iv_size);
b0->flags |= VLIB_BUFFER_TOTAL_LENGTH_VALID;