summaryrefslogtreecommitdiffstats
path: root/src/vnet/ip
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ip')
-rwxr-xr-xsrc/vnet/ip/ip6_neighbor.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/vnet/ip/ip6_neighbor.c b/src/vnet/ip/ip6_neighbor.c
index 3acfb1a4897..d501832bed2 100755
--- a/src/vnet/ip/ip6_neighbor.c
+++ b/src/vnet/ip/ip6_neighbor.c
@@ -1691,8 +1691,7 @@ icmp6_router_solicitation (vlib_main_t * vm,
sizeof (icmp6_router_advertisement_header_t);
if (vlib_buffer_add_data
- (vm, vlib_buffer_get_free_list_index
- (p0), &bi0, (void *) &rh,
+ (vm, &bi0, (void *) &rh,
sizeof (icmp6_router_advertisement_header_t)))
{
/* buffer allocation failed, drop the pkt */
@@ -1714,8 +1713,7 @@ icmp6_router_solicitation (vlib_main_t * vm,
eth_if0->address, 6);
if (vlib_buffer_add_data
- (vm, vlib_buffer_get_free_list_index
- (p0), &bi0, (void *) &h,
+ (vm, &bi0, (void *) &h,
sizeof
(icmp6_neighbor_discovery_ethernet_link_layer_address_option_t)))
{
@@ -1743,8 +1741,7 @@ icmp6_router_solicitation (vlib_main_t * vm,
sizeof (icmp6_neighbor_discovery_mtu_option_t);
if (vlib_buffer_add_data
- (vm, vlib_buffer_get_free_list_index
- (p0), &bi0, (void *) &h,
+ (vm, &bi0, (void *) &h,
sizeof
(icmp6_neighbor_discovery_mtu_option_t)))
{
@@ -1800,10 +1797,8 @@ icmp6_router_solicitation (vlib_main_t * vm,
payload_length += sizeof( icmp6_neighbor_discovery_prefix_information_option_t);
if (vlib_buffer_add_data
- (vm, vlib_buffer_get_free_list_index (p0),
- &bi0,
- (void *)&h,
- sizeof(icmp6_neighbor_discovery_prefix_information_option_t)))
+ (vm, &bi0, (void *)&h,
+ sizeof(icmp6_neighbor_discovery_prefix_information_option_t)))
{
error0 = ICMP6_ERROR_ALLOC_FAILURE;
goto drop0;
@@ -2846,9 +2841,8 @@ ip6_neighbor_send_mldpv2_report (u32 sw_if_index)
num_addr_records++;
- if(vlib_buffer_add_data
- (vm, vlib_buffer_get_free_list_index (b0), &bo0,
- (void *)&rr, sizeof(icmp6_multicast_address_record_t)))
+ if(vlib_buffer_add_data (vm, &bo0, (void *)&rr,
+ sizeof(icmp6_multicast_address_record_t)))
{
vlib_buffer_free (vm, &bo0, 1);
goto alloc_fail;