diff options
author | Florin Coras <fcoras@cisco.com> | 2020-06-23 14:11:01 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-06-23 22:21:50 +0000 |
commit | 9c8142a43c503276f97666cb8d34b39e382f82d6 (patch) | |
tree | 2b837e592759b18538609a1bfd6c08dc06f2b560 /src/vnet/udp/udp_local.c | |
parent | 97b9e008b9e072120ea8b0d98e81e898c3adbd4d (diff) |
udp: jump over ip4 options
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: I4f57a776302e11815fcea433ba8cf6724799ff65
Diffstat (limited to 'src/vnet/udp/udp_local.c')
-rw-r--r-- | src/vnet/udp/udp_local.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/udp/udp_local.c b/src/vnet/udp/udp_local.c index 1451cc3a0ad..8efcda1da14 100644 --- a/src/vnet/udp/udp_local.c +++ b/src/vnet/udp/udp_local.c @@ -113,8 +113,8 @@ udp46_local_inline (vlib_main_t * vm, /* 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 { @@ -291,7 +291,7 @@ udp46_local_inline (vlib_main_t * vm, /* 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); |