Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I4f57a776302e11815fcea433ba8cf6724799ff65
/* ip4/6_local hands us the ip header, not the udp header */
if (is_ip4)
{
- advance0 = sizeof (ip4_header_t);
- advance1 = sizeof (ip4_header_t);
+ advance0 = ip4_header_bytes (vlib_buffer_get_current (b0));
+ advance1 = ip4_header_bytes (vlib_buffer_get_current (b1));
}
else
{
/* ip4/6_local hands us the ip header, not the udp header */
if (is_ip4)
- advance0 = sizeof (ip4_header_t);
+ advance0 = ip4_header_bytes (vlib_buffer_get_current (b0));
else
advance0 = sizeof (ip6_header_t);