summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip/ping.c
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2019-02-09 23:29:26 +0100
committerDamjan Marion <damarion@cisco.com>2019-02-09 23:29:26 +0100
commit8934a04596d1421c35b194949b2027ca1fe71aef (patch)
tree9506a0f986a04112bcdae86a06834cc571c13841 /src/vnet/ip/ping.c
parent54a51fd5869c3451096e6512a927ff864855a24f (diff)
buffers: fix typo
Change-Id: I4e836244409c98739a13092ee252542a2c5fe259 Signed-off-by: Damjan Marion <damarion@cisco.com>
Diffstat (limited to 'src/vnet/ip/ping.c')
-rwxr-xr-xsrc/vnet/ip/ping.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/ip/ping.c b/src/vnet/ip/ping.c
index 90314b541c4..2376d9a2f5b 100755
--- a/src/vnet/ip/ping.c
+++ b/src/vnet/ip/ping.c
@@ -388,7 +388,7 @@ init_icmp46_echo_request (vlib_main_t * vm, vlib_buffer_t * b0,
int l34_len =
l4_header_offset + sizeof (icmp46_header_t) +
offsetof (icmp46_echo_request_t, data);
- int max_data_len = vlib_bufer_get_default_size (vm) - l34_len;
+ int max_data_len = vlib_buffer_get_default_data_size (vm) - l34_len;
int first_buf_data_len = data_len < max_data_len ? data_len : max_data_len;
@@ -403,8 +403,8 @@ init_icmp46_echo_request (vlib_main_t * vm, vlib_buffer_t * b0,
{
int this_buf_data_len =
remaining_data_len <
- vlib_bufer_get_default_size (vm) ? remaining_data_len :
- vlib_bufer_get_default_size (vm);
+ vlib_buffer_get_default_data_size (vm) ? remaining_data_len :
+ vlib_buffer_get_default_data_size (vm);
int n_alloc = vlib_buffer_alloc (vm, &b0->next_buffer, 1);
if (n_alloc < 1)
{