1 /* Hey Emacs use -*- mode: C -*- */
3 * Copyright (c) 2018 Cisco and/or its affiliates.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at:
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
20 * This file defines vpp UDP control-plane API messages which are generally
21 * called through a shared memory interface.
24 option version = "1.1.0";
26 import "vnet/ip/ip_types.api";
30 * @brief UDP Encap object
31 * @param table_id - table ID associated with the encap destination
32 * @param dst_ip - Encap destination address
33 * @param src_ip - Encap source address
34 * @param dst_port - Encap destination port
35 * @param src_port - Encap source port
36 * @param id - VPP assigned id; ignored in add message, set in dump
43 vl_api_address_t src_ip;
44 vl_api_address_t dst_ip;
49 * @brief Add UDP encap
50 * @param client_index - opaque cookie to identify the sender
51 * @param context - sender context, to match reply w/ request
52 * @param udp_encap - UDP encap description
58 vl_api_udp_encap_t udp_encap;
62 * @brief Add UDP encap reply
63 * @param context - sender context, to match reply w/ request
64 * @param retval - success/failure return value
65 * @param id - The ID of the encap object that should be used on delete
66 * and when reading stats from the stats segment.
68 define udp_encap_add_reply
76 * @brief Del UDP encap
77 * @param client_index - opaque cookie to identify the sender
78 * @param context - sender context, to match reply w/ request
79 * @param id - ID of the encap object the client chose during the add
81 autoreply define udp_encap_del
89 * @brief dump UDP encaps
98 * @brief UDP encap details during dump
100 define udp_encap_details
103 vl_api_udp_encap_t udp_encap;
108 * eval: (c-set-style "gnu")