FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
application_local.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 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 
17 #ifndef SRC_VNET_SESSION_APPLICATION_LOCAL_H_
18 #define SRC_VNET_SESSION_APPLICATION_LOCAL_H_
19 
21 #include <vnet/session/transport.h>
22 
23 #define foreach_ct_flags \
24  _ (CLIENT, "client") \
25  _ (HALF_OPEN, "half-open")
26 
27 enum
28 {
29 #define _(sym, str) CT_CONN_BIT_F_##sym,
31 #undef _
32 };
33 
34 typedef enum
35 {
36 #define _(sym, str) CT_CONN_F_##sym = 1 << CT_CONN_BIT_F_##sym,
38 #undef _
40 
41 typedef struct ct_connection_
42 {
56 
60 int ct_session_tx (session_t * s);
61 
62 #endif /* SRC_VNET_SESSION_APPLICATION_LOCAL_H_ */
63 
64 /*
65  * fd.io coding-style-patch-verification: ON
66  *
67  * Local Variables:
68  * eval: (c-set-style "gnu")
69  * End:
70  */
ct_connection_
Definition: application_local.h:41
session_error_t
enum session_error_ session_error_t
ct_connection_t
struct ct_connection_ ct_connection_t
ct_connection_::ct_seg_index
u32 ct_seg_index
Definition: application_local.h:50
session_
Definition: session_types.h:175
ct_session_connect_notify
int ct_session_connect_notify(session_t *ls, session_error_t err)
Definition: application_local.c:279
ct_connection_::server_wrk
u32 server_wrk
Definition: application_local.h:45
ct_connection_::flags
ct_connection_flags_t flags
Definition: application_local.h:54
transport_connection_t
struct _transport_connection transport_connection_t
svm_fifo_t
struct _svm_fifo svm_fifo_t
ct_session_tx
int ct_session_tx(session_t *s)
Definition: application_local.c:1081
ct_connection_::segment_handle
u64 segment_handle
Definition: application_local.h:48
ct_connection_::client_rx_fifo
svm_fifo_t * client_rx_fifo
Definition: application_local.h:51
ct_connection_::peer_index
u32 peer_index
Definition: application_local.h:47
ct_connection_::actual_tp
transport_proto_t actual_tp
Definition: application_local.h:53
ct_connection_::connection
transport_connection_t connection
Definition: application_local.h:43
foreach_ct_flags
#define foreach_ct_flags
Definition: application_local.h:23
u64
unsigned long u64
Definition: types.h:89
u32
unsigned int u32
Definition: types.h:88
transport_proto_t
enum _transport_proto transport_proto_t
ct_connection_::seg_ctx_index
u32 seg_ctx_index
Definition: application_local.h:49
ct_session_get_peer
session_t * ct_session_get_peer(session_t *s)
Definition: application_local.c:120
ct_connection_::client_opaque
u32 client_opaque
Definition: application_local.h:46
session_endpoint_t
struct _session_endpoint session_endpoint_t
ct_connection_::client_tx_fifo
svm_fifo_t * client_tx_fifo
Definition: application_local.h:52
transport.h
ct_connection_flags_t
ct_connection_flags_t
Definition: application_local.h:34
ct_connection_::client_wrk
u32 client_wrk
Definition: application_local.h:44
ct_session_endpoint
void ct_session_endpoint(session_t *ll, session_endpoint_t *sep)
Definition: application_local.c:129
application.h