/*
 * Copyright (c) 2015-2019 Cisco and/or its affiliates.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at:
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

option version = "2.0.0";

import "vnet/ip/ip_types.api";

/** \brief Configure TCP source addresses, for active-open TCP sessions

    TCP src/dst ports are 16 bits, with the low-order 1024 ports
    reserved. So, it's necessary to provide a considerable number of
    source IP addresses if one wishes to initiate a large number of
    connections.

    Each of those addresses needs to have a receive adjacency -
    either a /32 or a /128 - and vpp needs to answer (proxy) arps or
    neighbor discovery requests for the addresses.

    @param client_index - opaque cookie to identify the sender
    @param context - sender context, to match reply w/ request
    @param is_ipv6 - 1 for ipv6, 0 for ipv4
    @param vrf_id - fib table / vrf id for local adjacencies
    @param first_address - first address that TCP will use
    @param last_address - last address that TCP will use
*/
autoreply define tcp_configure_src_addresses {
    u32 client_index;
    u32 context;
    u32 vrf_id;
    vl_api_address_t first_address;
    vl_api_address_t last_address;
 };
