blob: 9f5e2ece6baeff034e756627d82dd0b53d5931d3 [file] [log] [blame]
Neale Ranns810086d2017-11-05 16:26:46 -08001/*
2 * Copyright (c) 2016 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/** \file
17
18 This file defines vpp UDP control-plane API messages which are generally
19 called through a shared memory interface.
20*/
21
Ole Troan9d420872017-10-12 13:06:35 +020022option version = "1.0.0";
Neale Ranns810086d2017-11-05 16:26:46 -080023
24/** \brief Add / del table request
25 A table can be added multiple times, but need be deleted only once.
26 @param client_index - opaque cookie to identify the sender
27 @param context - sender context, to match reply w/ request
28 @param is_ipv6 - V4 or V6 table
29 @param table_id - table ID associated with the encap destination
30*/
31autoreply define udp_encap_add_del
32{
33 u32 client_index;
34 u32 context;
35 u32 id;
36 u32 table_id;
37 u8 is_ip6;
38 u8 is_add;
39 u16 src_port;
40 u16 dst_port;
41 u8 src_ip[16];
42 u8 dst_ip[16];
43};
44
45define udp_encap_dump
46{
47 u32 client_index;
48 u32 context;
49};
50
51define udp_encap_details
52{
53 u32 context;
54 u32 id;
55 u32 table_id;
56 u8 is_ip6;
57 u16 src_port;
58 u16 dst_port;
59 u8 src_ip[16];
60 u8 dst_ip[16];
61};
62
63/*
64 * Local Variables:
65 * eval: (c-set-style "gnu")
66 * End:
67 */