"autoreply" flag: autogenerate standard xxx_reply_t messages
[vpp.git] / src / vnet / dhcp / dhcp.api
1 /*
2  * Copyright (c) 2015-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 /** \brief DHCP Proxy config add / del request
17     @param client_index - opaque cookie to identify the sender
18     @param context - sender context, to match reply w/ request
19     @param rx_vrf_id - Rx/interface vrf id
20     @param server_vrf_id - server vrf id
21     @param if_ipv6 - ipv6 if non-zero, else ipv4
22     @param is_add - add the config if non-zero, else delete
23     @param insert_circuit_id - option82 suboption 1 fib number
24     @param dhcp_server[] - server address
25     @param dhcp_src_address[] - <fix this, need details>
26 */
27 autoreply define dhcp_proxy_config
28 {
29   u32 client_index;
30   u32 context;
31   u32 rx_vrf_id;
32   u32 server_vrf_id;
33   u8 is_ipv6;
34   u8 is_add;
35   u8 dhcp_server[16];
36   u8 dhcp_src_address[16];
37 };
38
39 /** \brief DHCP Proxy set / unset vss request
40     @param client_index - opaque cookie to identify the sender
41     @param context - sender context, to match reply w/ request
42     @param tbl_id - table id
43     @param oui - first part of vpn id
44     @param fib_id - second part of vpn id
45     @param is_ipv6 - ip6 if non-zero, else ip4
46     @param is_add - set vss if non-zero, else delete
47 */
48 autoreply define dhcp_proxy_set_vss
49 {
50   u32 client_index;
51   u32 context;
52   u32 tbl_id;
53   u32 oui;
54   u32 fib_id;
55   u8 is_ipv6;
56   u8 is_add;
57 };
58
59 /** \brief DHCP Client config add / del request
60     @param client_index - opaque cookie to identify the sender
61     @param context - sender context, to match reply w/ request
62     @param sw_if_index - index of the interface for DHCP client
63     @param hostname - hostname
64     @param is_add - add the config if non-zero, else delete
65     @param want_dhcp_event - DHCP event sent to the sender
66            via dhcp_compl_event API message if non-zero
67     @param pid - sender's pid
68 */
69 autoreply define dhcp_client_config
70 {
71   u32 client_index;
72   u32 context;
73   u32 sw_if_index;
74   u8 hostname[64];
75   u8 is_add;
76   u8 want_dhcp_event;
77   u32 pid;
78 };
79
80 /** \brief Tell client about a DHCP completion event
81     @param client_index - opaque cookie to identify the sender
82     @param pid - client pid registered to receive notification
83     @param is_ipv6 - if non-zero the address is ipv6, else ipv4
84     @param host_address - Host IP address
85     @param router_address - Router IP address
86     @param host_mac - Host MAC address
87 */
88 define dhcp_compl_event
89 {
90   u32 client_index;
91   u32 pid;
92   u8 hostname[64];
93   u8 is_ipv6;
94   u8 host_address[16];
95   u8 router_address[16];
96   u8 host_mac[6];
97 };
98
99 /** \brief Dump DHCP proxy table
100     @param client_index - opaque cookie to identify the sender
101     @param True for IPv6 proxy table
102 */
103 define dhcp_proxy_dump
104 {
105   u32 client_index;
106   u32 context;
107   u8  is_ip6;
108 };
109
110 typeonly manual_print manual_endian define dhcp_server
111 {
112   u32 server_vrf_id;
113   u8 dhcp_server[16];
114 };
115
116 /** \brief Tell client about a DHCP completion event
117     @param client_index - opaque cookie to identify the sender
118 */
119 manual_endian manual_print define dhcp_proxy_details
120 {
121   u32 context;
122   u32 rx_vrf_id;
123   u32 vss_oui;
124   u32 vss_fib_id;
125   u8 is_ipv6;
126   u8 dhcp_src_address[16];
127   u8 count;
128   vl_api_dhcp_server_t servers[count];
129 };
130
131 /*
132  * Local Variables:
133  * eval: (c-set-style "gnu")
134  * End:
135  */