blob: 58054ae4ba2faa4250781ca559d0bc4935eee7d5 [file] [log] [blame]
Dave Barach68b0fb02017-02-28 15:15:56 -05001/*
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 */
Dave Barach0d056e52017-09-28 15:11:16 -040015
Florin Coras99368312018-08-02 10:45:44 -070016option version = "1.1.0";
Dave Barach0d056e52017-09-28 15:11:16 -040017
Florin Coras6cf30ad2017-04-04 23:08:23 -070018/** \brief client->vpp, attach application to session layer
19 @param client_index - opaque cookie to identify the sender
20 @param context - sender context, to match reply w/ request
21 @param initial_segment_size - size of the initial shm segment to be
22 allocated
23 @param options - segment size, fifo sizes, etc.
Florin Corascea194d2017-10-02 00:18:51 -070024 @param namespace_id_len - length of the namespace id c-string
25 @param namespace_id - 0 terminted c-string
Florin Coras6cf30ad2017-04-04 23:08:23 -070026*/
27 define application_attach {
28 u32 client_index;
29 u32 context;
30 u32 initial_segment_size;
31 u64 options[16];
Florin Corascea194d2017-10-02 00:18:51 -070032 u8 namespace_id_len;
33 u8 namespace_id [64];
Florin Coras6cf30ad2017-04-04 23:08:23 -070034 };
35
36 /** \brief Application attach reply
37 @param context - sender context, to match reply w/ request
38 @param retval - return code for the request
39 @param app_event_queue_address - vpp event queue address or 0 if this
40 connection shouldn't send events
Florin Coras99368312018-08-02 10:45:44 -070041 @param n_fds - number of fds exchanged
42 @param fd_flags - set of flags that indicate which fds are to be expected
43 over the socket (set only if socket transport available)
Florin Coras6cf30ad2017-04-04 23:08:23 -070044 @param segment_size - size of first shm segment
45 @param segment_name_length - length of segment name
46 @param segment_name - name of segment client needs to attach to
47*/
48define application_attach_reply {
49 u32 context;
50 i32 retval;
51 u64 app_event_queue_address;
Florin Coras99368312018-08-02 10:45:44 -070052 u8 n_fds;
53 u8 fd_flags;
Florin Coras6cf30ad2017-04-04 23:08:23 -070054 u32 segment_size;
55 u8 segment_name_length;
56 u8 segment_name[128];
57};
58
Florin Coras371ca502018-02-21 12:07:41 -080059/** \brief Application add TLS certificate
60 @param client_index - opaque cookie to identify the sender
61 @param context - sender context, to match reply w/ request
62 @param cert_len - certificate length
63 @param cert - certificate as a string
64*/
65autoreply define application_tls_cert_add {
66 u32 client_index;
67 u32 context;
68 u32 app_index;
69 u16 cert_len;
70 u8 cert[cert_len];
71};
72
73/** \brief Application add TLS key
74 @param client_index - opaque cookie to identify the sender
75 @param context - sender context, to match reply w/ request
76 @param key_len - certificate length
77 @param key - PEM encoded key as a string
78*/
79autoreply define application_tls_key_add {
80 u32 client_index;
81 u32 context;
82 u32 app_index;
83 u16 key_len;
84 u8 key[key_len];
85};
86
Florin Coras6cf30ad2017-04-04 23:08:23 -070087 /** \brief client->vpp, attach application to session layer
88 @param client_index - opaque cookie to identify the sender
89 @param context - sender context, to match reply w/ request
90*/
Dave Barach11b8dbf2017-04-24 10:46:54 -040091autoreply define application_detach {
Florin Coras6cf30ad2017-04-04 23:08:23 -070092 u32 client_index;
93 u32 context;
94 };
95
Florin Coras6cf30ad2017-04-04 23:08:23 -070096/** \brief vpp->client, please map an additional shared memory segment
97 @param client_index - opaque cookie to identify the sender
98 @param context - sender context, to match reply w/ request
Florin Coras99368312018-08-02 10:45:44 -070099 @param fd_flags - set of flags that indicate which, if any, fds are
100 to be expected over the socket. This is set only if
101 socket transport available
102 @param segment_size - size of the segment to be mapped
103 @param segment_name - name of the segment to be mapped
Florin Coras6cf30ad2017-04-04 23:08:23 -0700104*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400105autoreply define map_another_segment {
Florin Coras6cf30ad2017-04-04 23:08:23 -0700106 u32 client_index;
107 u32 context;
Florin Coras99368312018-08-02 10:45:44 -0700108 u8 fd_flags;
Florin Coras6cf30ad2017-04-04 23:08:23 -0700109 u32 segment_size;
110 u8 segment_name[128];
111};
112
Florin Corasf8f516a2018-02-08 15:10:09 -0800113/** \brief vpp->client unmap shared memory segment
114 @param client_index - opaque cookie to identify the sender
115 @param context - sender context, to match reply w/ request
116 @param segment_name -
117*/
118autoreply define unmap_segment {
119 u32 client_index;
120 u32 context;
121 u8 segment_name[128];
122};
123
Dave Barach68b0fb02017-02-28 15:15:56 -0500124 /** \brief Bind to a given URI
125 @param client_index - opaque cookie to identify the sender
126 @param context - sender context, to match reply w/ request
127 @param accept_cookie - sender accept cookie, to identify this bind flavor
128 @param uri - a URI, e.g. "tcp://0.0.0.0/0/80" [ipv4]
129 "tcp://::/0/80" [ipv6] etc.
130 @param options - socket options, fifo sizes, etc.
131*/
Florin Coras7fb0fe12018-04-09 09:24:52 -0700132define bind_uri {
Dave Barach68b0fb02017-02-28 15:15:56 -0500133 u32 client_index;
134 u32 context;
135 u32 accept_cookie;
Dave Barach68b0fb02017-02-28 15:15:56 -0500136 u8 uri[128];
Dave Barach68b0fb02017-02-28 15:15:56 -0500137};
138
Florin Coras7fb0fe12018-04-09 09:24:52 -0700139define bind_uri_reply {
140 u32 context;
141 u64 handle;
142 i32 retval;
143 u64 rx_fifo;
144 u64 tx_fifo;
145 u8 lcl_is_ip4;
146 u8 lcl_ip[16];
147 u16 lcl_port;
148 u64 vpp_evt_q;
149};
150
Dave Barach68b0fb02017-02-28 15:15:56 -0500151/** \brief Unbind a given URI
152 @param client_index - opaque cookie to identify the sender
153 @param context - sender context, to match reply w/ request
154 @param uri - a URI, e.g. "tcp://0.0.0.0/0/80" [ipv4]
155 "tcp://::/0/80" [ipv6], etc.
156 @param options - socket options, fifo sizes, etc.
157*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400158autoreply define unbind_uri {
Dave Barach68b0fb02017-02-28 15:15:56 -0500159 u32 client_index;
160 u32 context;
161 u8 uri[128];
162};
163
164/** \brief Connect to a given URI
165 @param client_index - opaque cookie to identify the sender
166 @param context - sender context, to match reply w/ request
Florin Coras6cf30ad2017-04-04 23:08:23 -0700167 @param client_queue_address - binary API client queue address. Used by
168 local server when connect was redirected.
Florin Corascea194d2017-10-02 00:18:51 -0700169 @param options - socket options, fifo sizes, etc. passed by vpp to the
170 server when redirecting connects
171 @param uri - a URI, e.g. "tcp4://0.0.0.0/0/80"
172 "tcp6://::/0/80" [ipv6], etc.
Dave Barach68b0fb02017-02-28 15:15:56 -0500173*/
Dave Wallace33e002b2017-09-06 01:20:02 -0400174autoreply define connect_uri {
Dave Barach68b0fb02017-02-28 15:15:56 -0500175 u32 client_index;
176 u32 context;
Dave Barach68b0fb02017-02-28 15:15:56 -0500177 u64 client_queue_address;
178 u64 options[16];
Florin Corascea194d2017-10-02 00:18:51 -0700179 u8 uri[128];
Dave Barach68b0fb02017-02-28 15:15:56 -0500180};
181
Dave Barach68b0fb02017-02-28 15:15:56 -0500182/** \brief vpp->client, accept this session
183 @param context - sender context, to match reply w/ request
Florin Coras6cf30ad2017-04-04 23:08:23 -0700184 @param listener_handle - tells client which listener this pertains to
185 @param handle - unique session identifier
Dave Barach68b0fb02017-02-28 15:15:56 -0500186 @param rx_fifo_address - rx (vpp -> vpp-client) fifo address
187 @param tx_fifo_address - tx (vpp-client -> vpp) fifo address
Florin Corasf8f516a2018-02-08 15:10:09 -0800188 @param vpp_event_queue_address - vpp's event queue address or client's
189 event queue for cut through
190 @param server_event_queue_address - server's event queue address for
191 cut through sessions
Florin Coras6cf30ad2017-04-04 23:08:23 -0700192 @param port - remote port
193 @param is_ip4 - 1 if the ip is ip4
194 @param ip - remote ip
Dave Barach68b0fb02017-02-28 15:15:56 -0500195*/
196define accept_session {
197 u32 client_index;
198 u32 context;
Florin Coras6cf30ad2017-04-04 23:08:23 -0700199 u64 listener_handle;
200 u64 handle;
Dave Barach68b0fb02017-02-28 15:15:56 -0500201 u64 server_rx_fifo;
202 u64 server_tx_fifo;
Dave Barach68b0fb02017-02-28 15:15:56 -0500203 u64 vpp_event_queue_address;
Florin Corasf8f516a2018-02-08 15:10:09 -0800204 u64 server_event_queue_address;
Florin Coras6cf30ad2017-04-04 23:08:23 -0700205 u16 port;
206 u8 is_ip4;
207 u8 ip[16];
Dave Barach68b0fb02017-02-28 15:15:56 -0500208};
209
210/** \brief client->vpp, reply to an accept message
211 @param context - sender context, to match reply w/ request
212 @param retval - return code for the request
213 @param session_index - session index from accept_session / connect_reply
214 @param session_thread_index - thread index from accept_session /
215 connect_reply
216*/
217define accept_session_reply {
218 u32 context;
219 i32 retval;
Florin Coras6cf30ad2017-04-04 23:08:23 -0700220 u64 handle;
Dave Barach68b0fb02017-02-28 15:15:56 -0500221};
222
223/** \brief bidirectional disconnect API
224 @param client_index - opaque cookie to identify the sender
225 client to vpp direction only
226 @param context - sender context, to match reply w/ request
Florin Coras6cf30ad2017-04-04 23:08:23 -0700227 @param handle - session handle obtained from accept/connect
Dave Barach68b0fb02017-02-28 15:15:56 -0500228*/
229define disconnect_session {
230 u32 client_index;
231 u32 context;
Florin Coras6cf30ad2017-04-04 23:08:23 -0700232 u64 handle;
Dave Barach68b0fb02017-02-28 15:15:56 -0500233};
234
235/** \brief bidirectional disconnect reply API
236 @param client_index - opaque cookie to identify the sender
237 client to vpp direction only
238 @param context - sender context, to match reply w/ request
239 @param retval - return code for the request
Florin Coras6cf30ad2017-04-04 23:08:23 -0700240 @param handle - session handle
Dave Barach68b0fb02017-02-28 15:15:56 -0500241*/
242define disconnect_session_reply {
Dave Barach68b0fb02017-02-28 15:15:56 -0500243 u32 context;
244 i32 retval;
Florin Coras6cf30ad2017-04-04 23:08:23 -0700245 u64 handle;
Dave Barach68b0fb02017-02-28 15:15:56 -0500246};
247
248/** \brief vpp->client reset session API
249 @param client_index - opaque cookie to identify the sender
250 client to vpp direction only
251 @param context - sender context, to match reply w/ request
Florin Coras6cf30ad2017-04-04 23:08:23 -0700252 @param handle - session handle obtained via accept/connects
Dave Barach68b0fb02017-02-28 15:15:56 -0500253*/
254define reset_session {
255 u32 client_index;
256 u32 context;
Florin Coras6cf30ad2017-04-04 23:08:23 -0700257 u64 handle;
Dave Barach68b0fb02017-02-28 15:15:56 -0500258};
259
260/** \brief client->vpp reset session reply
261 @param client_index - opaque cookie to identify the sender
262 client to vpp direction only
263 @param context - sender context, to match reply w/ request
264 @param retval - return code for the request
Florin Coras6cf30ad2017-04-04 23:08:23 -0700265 @param handle - session handle obtained via accept/connect
Dave Barach68b0fb02017-02-28 15:15:56 -0500266*/
267define reset_session_reply {
268 u32 client_index;
269 u32 context;
270 i32 retval;
Florin Coras6cf30ad2017-04-04 23:08:23 -0700271 u64 handle;
Dave Barach68b0fb02017-02-28 15:15:56 -0500272};
273
274/** \brief Bind to an ip:port pair for a given transport protocol
275 @param client_index - opaque cookie to identify the sender
276 @param context - sender context, to match reply w/ request
277 @param vrf - bind namespace
278 @param is_ip4 - flag that is 1 if ip address family is IPv4
279 @param ip - ip address
280 @param port - port
281 @param proto - protocol 0 - TCP 1 - UDP
282 @param options - socket options, fifo sizes, etc.
283*/
284define bind_sock {
285 u32 client_index;
286 u32 context;
287 u32 vrf;
288 u8 is_ip4;
289 u8 ip[16];
290 u16 port;
291 u8 proto;
292 u64 options[16];
293};
294
295/** \brief Unbind
296 @param client_index - opaque cookie to identify the sender
297 @param context - sender context, to match reply w/ request
298 @param handle - bind handle obtained from bind reply
299*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400300autoreply define unbind_sock {
Dave Barach68b0fb02017-02-28 15:15:56 -0500301 u32 client_index;
302 u32 context;
303 u64 handle;
304};
305
306/** \brief Connect to a remote peer
307 @param client_index - opaque cookie to identify the sender
308 @param context - sender context, to match reply w/ request
Florin Corascea194d2017-10-02 00:18:51 -0700309 @param client_queue_address - client's API queue address. Non-zero when
310 used to perform redirects
311 @param options - socket options, fifo sizes, etc. when doing redirects
Dave Barach68b0fb02017-02-28 15:15:56 -0500312 @param vrf - connection namespace
313 @param is_ip4 - flag that is 1 if ip address family is IPv4
314 @param ip - ip address
315 @param port - port
316 @param proto - protocol 0 - TCP 1 - UDP
Florin Coras8f89dd02018-03-05 16:53:07 -0800317 @param hostname-len - length of hostname
318 @param hostname - destination's hostname. If present, used by protocols
319 like tls.
Dave Barach68b0fb02017-02-28 15:15:56 -0500320*/
Dave Wallace33e002b2017-09-06 01:20:02 -0400321autoreply define connect_sock {
Dave Barach68b0fb02017-02-28 15:15:56 -0500322 u32 client_index;
323 u32 context;
Florin Corascea194d2017-10-02 00:18:51 -0700324 u64 client_queue_address;
325 u64 options[16];
Dave Barach68b0fb02017-02-28 15:15:56 -0500326 u32 vrf;
327 u8 is_ip4;
328 u8 ip[16];
329 u16 port;
330 u8 proto;
Florin Coras8f89dd02018-03-05 16:53:07 -0800331 u8 hostname_len;
332 u8 hostname[hostname_len];
Dave Barach68b0fb02017-02-28 15:15:56 -0500333};
334
335/** \brief Bind reply
336 @param context - sender context, to match reply w/ request
337 @param handle - bind handle
338 @param retval - return code for the request
Florin Coras7fb0fe12018-04-09 09:24:52 -0700339 @param lcl_is_ip4 - local ip address type
340 @param lcl_ip6 - local ip address
341 @param lcl_port - local port
342 @param rx_fifo - rx fifo address if allocated (connectionless)
343 @param tx_fifo - tx fifo address if allocated (connectionless)
344 @param vpp_evt_q - vpp event queue address (connectionless)
Dave Barach68b0fb02017-02-28 15:15:56 -0500345 @param segment_name_length - length of segment name
346 @param segment_name - name of segment client needs to attach to
347*/
348define bind_sock_reply {
349 u32 context;
350 u64 handle;
351 i32 retval;
Florin Corasdcf55ce2017-11-16 15:32:50 -0800352 u8 lcl_is_ip4;
353 u8 lcl_ip[16];
354 u16 lcl_port;
Florin Coras7fb0fe12018-04-09 09:24:52 -0700355 u64 rx_fifo;
356 u64 tx_fifo;
357 u64 vpp_evt_q;
Dave Barach68b0fb02017-02-28 15:15:56 -0500358 u32 segment_size;
359 u8 segment_name_length;
360 u8 segment_name[128];
361};
362
Dave Wallace33e002b2017-09-06 01:20:02 -0400363/* Dummy connect message -- needed to satisfy api generators
364*
365* NEVER USED, doxygen tags elided on purpose.
366*/
367define connect_session {
368 u32 client_index;
369 u32 context;
370};
371
372/** \brief vpp/server->client, connect reply -- used for all connect_* messages
Dave Barach68b0fb02017-02-28 15:15:56 -0500373 @param context - sender context, to match reply w/ request
374 @param retval - return code for the request
375 @param handle - connection handle
376 @param server_rx_fifo - rx (vpp -> vpp-client) fifo address
377 @param server_tx_fifo - tx (vpp-client -> vpp) fifo address
378 @param vpp_event_queue_address - vpp's event queue address
Florin Corasf8f516a2018-02-08 15:10:09 -0800379 @param client_event_queue_address - client's event queue address
Florin Coras6cf30ad2017-04-04 23:08:23 -0700380 @param segment_size - size of segment to be attached. Only for redirects.
Dave Barach68b0fb02017-02-28 15:15:56 -0500381 @param segment_name_length - non-zero if the client needs to attach to
382 the fifo segment
383 @param segment_name - set if the client needs to attach to the segment
Florin Corasade70e42017-10-14 18:56:41 -0700384 @param lcl_ip - local ip for connection
385 @param is_ip4 - flag to indicate if ip is v4 or v6
386 @param lcl_port - local port
Dave Barach68b0fb02017-02-28 15:15:56 -0500387*/
Dave Wallace33e002b2017-09-06 01:20:02 -0400388define connect_session_reply {
Dave Barach68b0fb02017-02-28 15:15:56 -0500389 u32 context;
390 i32 retval;
391 u64 handle;
392 u64 server_rx_fifo;
393 u64 server_tx_fifo;
Dave Barach68b0fb02017-02-28 15:15:56 -0500394 u64 vpp_event_queue_address;
Florin Corasf8f516a2018-02-08 15:10:09 -0800395 u64 client_event_queue_address;
Dave Barach68b0fb02017-02-28 15:15:56 -0500396 u32 segment_size;
397 u8 segment_name_length;
398 u8 segment_name[128];
Florin Corasade70e42017-10-14 18:56:41 -0700399 u8 lcl_ip[16];
400 u8 is_ip4;
401 u16 lcl_port;
Dave Barach68b0fb02017-02-28 15:15:56 -0500402};
403
Florin Coras99368312018-08-02 10:45:44 -0700404/** \brief ask app to add a new cut-through registration
405 @param client_index - opaque cookie to identify the sender
406 client to vpp direction only
407 @param context - sender context, to match reply w/ request
408 @param evt_q_address - address of the mq in ssvm segment
409 @param peer_evt_q_address - address of peer's mq in ssvm segment
410 @param n_fds - number of fds exchanged
411 @param fd_flags - flag indicating the fds that will be exchanged over
412 api socket
413*/
414autoreply define app_cut_through_registration_add
415{
416 u32 client_index;
417 u32 context;
418 u64 evt_q_address;
419 u64 peer_evt_q_address;
420 u8 n_fds;
421 u8 fd_flags;
422};
423
Florin Corase04c2992017-03-01 08:17:34 -0800424/** \brief enable/disable session layer
425 @param client_index - opaque cookie to identify the sender
426 client to vpp direction only
427 @param context - sender context, to match reply w/ request
428 @param is_enable - disable session layer if 0, enable otherwise
429*/
Dave Barach11b8dbf2017-04-24 10:46:54 -0400430autoreply define session_enable_disable {
Florin Corase04c2992017-03-01 08:17:34 -0800431 u32 client_index;
432 u32 context;
433 u8 is_enable;
434};
435
Florin Corascea194d2017-10-02 00:18:51 -0700436/** \brief add/del application namespace
437 @param client_index - opaque cookie to identify the sender
438 client to vpp direction only
439 @param context - sender context, to match reply w/ request
440 @param secret - secret shared between app and vpp
441 @param sw_if_index - local interface that "supports" namespace. Set to
442 ~0 if no preference
443 @param ip4_fib_id - id of ip4 fib that "supports" the namespace. Ignored
444 if sw_if_index set.
445 @param ip6_fib_id - id of ip6 fib that "supports" the namespace. Ignored
446 if sw_if_index set.
447 @param namespace_id_len - length of namespace id lower
448 @param namespace_id - namespace id
449*/
Florin Coras6e8c6672017-11-10 09:03:54 -0800450define app_namespace_add_del {
Florin Corascea194d2017-10-02 00:18:51 -0700451 u32 client_index;
452 u32 context;
453 u64 secret;
454 u32 sw_if_index;
455 u32 ip4_fib_id;
456 u32 ip6_fib_id;
457 u8 namespace_id_len;
458 u8 namespace_id[64];
459};
460
Florin Coras6e8c6672017-11-10 09:03:54 -0800461/** \brief Reply for app namespace add/del
462 @param context - returned sender context, to match reply w/ request
463 @param retval - return code
464 @param appns_index - app namespace index
465*/
466define app_namespace_add_del_reply
467{
468 u32 context;
469 i32 retval;
470 u32 appns_index;
471};
472
Florin Coras1c710452017-10-17 00:03:13 -0700473/** \brief add/del session rule
474 @param client_index - opaque cookie to identify the sender
475 client to vpp direction only
476 @param context - sender context, to match reply w/ request
477 @param transport_proto - transport protocol (0 - tcp 1 - udp)
478 @param is_ip4 - flag to indicate if ip addresses are ip4 or 6
479 @param lcl_ip - local ip
480 @param lcl_plen - local prefix length
481 @param rmt_ip - remote ip
482 @param rmt_ple - remote prefix length
483 @param lcl_port - local port
484 @param rmt_port - remote port
485 @param action_index - the only action defined now is forward to
486 application with index action_index
487 @param is_add - flag to indicate if add or del
488 @param appns_index - application namespace where rule is to be applied
489 to
490 @param scope - flag that indicates scope of the rule: global or local.
491 If 0, default is global, 1 is global 2 is local, 3 is
492 both
493*/
494autoreply define session_rule_add_del {
495 u32 client_index;
496 u32 context;
497 u8 transport_proto;
498 u8 is_ip4;
499 u8 lcl_ip[16];
500 u8 lcl_plen;
501 u8 rmt_ip[16];
502 u8 rmt_plen;
503 u16 lcl_port;
504 u16 rmt_port;
505 u32 action_index;
506 u8 is_add;
507 u32 appns_index;
508 u8 scope;
Florin Corasc97a7392017-11-05 23:07:07 -0800509 u8 tag[64];
Florin Coras1c710452017-10-17 00:03:13 -0700510};
511
Florin Coras6c36f532017-11-03 18:32:34 -0700512/** \brief Dump session rules
513 @param client_index - opaque cookie to identify the sender
514 @param context - sender context, to match reply w/ request
515 */
516define session_rules_dump
517{
518 u32 client_index;
519 u32 context;
520};
521
522/** \brief Session rules details
523 @param context - sender context, to match reply w/ request
524 @param transport_proto - transport protocol (0 - tcp 1 - udp)
525 @param is_ip4 - flag to indicate if ip addresses are ip4 or 6
526 @param lcl_ip - local ip
527 @param lcl_plen - local prefix length
528 @param rmt_ip - remote ip
529 @param rmt_ple - remote prefix length
530 @param lcl_port - local port
531 @param rmt_port - remote port
532 @param action_index - the only action defined now is forward to
533 application with index action_index
534 @param appns_index - application namespace where rule is to be applied
535 to
536 @param scope - flag that indicates scope of the rule: global or local.
537 If 0, default is global, 1 is global 2 is local, 3 is
538 both
539 */
540define session_rules_details
541{
542 u32 context;
543 u8 transport_proto;
544 u8 is_ip4;
545 u8 lcl_ip[16];
546 u8 lcl_plen;
547 u8 rmt_ip[16];
548 u8 rmt_plen;
549 u16 lcl_port;
550 u16 rmt_port;
551 u32 action_index;
552 u32 appns_index;
553 u8 scope;
Florin Corasc97a7392017-11-05 23:07:07 -0800554 u8 tag[64];
Florin Coras6c36f532017-11-03 18:32:34 -0700555};
556
Dave Barach68b0fb02017-02-28 15:15:56 -0500557/*
558 * Local Variables:
559 * eval: (c-set-style "gnu")
560 * End:
Dave Barach11b8dbf2017-04-24 10:46:54 -0400561 */