Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
session tcp vcl: api to update connection attributes
[vpp.git]
/
src
/
vcl
/
vppcom.h
diff --git
a/src/vcl/vppcom.h
b/src/vcl/vppcom.h
index
6e3c278
..
d956b5f
100644
(file)
--- a/
src/vcl/vppcom.h
+++ b/
src/vcl/vppcom.h
@@
-45,29
+45,30
@@
extern "C"
#define VPPCOM_ENV_VPP_API_SOCKET "VCL_VPP_API_SOCKET"
#define VPPCOM_ENV_VPP_SAPI_SOCKET "VCL_VPP_SAPI_SOCKET"
#define VPPCOM_ENV_VPP_API_SOCKET "VCL_VPP_API_SOCKET"
#define VPPCOM_ENV_VPP_SAPI_SOCKET "VCL_VPP_SAPI_SOCKET"
-typedef enum
-{
- VPPCOM_PROTO_TCP = 0,
- VPPCOM_PROTO_UDP,
- VPPCOM_PROTO_NONE,
- VPPCOM_PROTO_TLS,
- VPPCOM_PROTO_QUIC,
-} vppcom_proto_t;
-
-typedef enum
-{
- VPPCOM_IS_IP6 = 0,
- VPPCOM_IS_IP4,
-} vppcom_is_ip4_t;
-
-typedef struct vppcom_endpt_t_
-{
- uint8_t is_cut_thru;
- uint8_t is_ip4;
- uint8_t *ip;
- uint16_t port;
- uint64_t parent_handle;
-} vppcom_endpt_t;
+ typedef enum
+ {
+ VPPCOM_PROTO_TCP = 0,
+ VPPCOM_PROTO_UDP,
+ VPPCOM_PROTO_NONE,
+ VPPCOM_PROTO_TLS,
+ VPPCOM_PROTO_QUIC,
+ VPPCOM_PROTO_DTLS,
+ } vppcom_proto_t;
+
+ typedef enum
+ {
+ VPPCOM_IS_IP6 = 0,
+ VPPCOM_IS_IP4,
+ } vppcom_is_ip4_t;
+
+ typedef struct vppcom_endpt_t_
+ {
+ uint8_t is_cut_thru;
+ uint8_t is_ip4;
+ uint8_t *ip;
+ uint16_t port;
+ uint64_t parent_handle;
+ } vppcom_endpt_t;
typedef uint32_t vcl_session_handle_t;
typedef uint32_t vcl_session_handle_t;
@@
-95,7
+96,8
@@
typedef enum
VPPCOM_ENOTCONN = -ENOTCONN,
VPPCOM_ECONNREFUSED = -ECONNREFUSED,
VPPCOM_ETIMEDOUT = -ETIMEDOUT,
VPPCOM_ENOTCONN = -ENOTCONN,
VPPCOM_ECONNREFUSED = -ECONNREFUSED,
VPPCOM_ETIMEDOUT = -ETIMEDOUT,
- VPPCOM_EEXIST = -EEXIST
+ VPPCOM_EEXIST = -EEXIST,
+ VPPCOM_ENOPROTOOPT = -ENOPROTOOPT
} vppcom_error_t;
typedef enum
} vppcom_error_t;
typedef enum
@@
-140,6
+142,7
@@
typedef enum
VPPCOM_ATTR_SET_CKPAIR,
VPPCOM_ATTR_SET_VRF,
VPPCOM_ATTR_GET_VRF,
VPPCOM_ATTR_SET_CKPAIR,
VPPCOM_ATTR_SET_VRF,
VPPCOM_ATTR_GET_VRF,
+ VPPCOM_ATTR_GET_DOMAIN,
} vppcom_attr_op_t;
typedef struct _vcl_poll
} vppcom_attr_op_t;
typedef struct _vcl_poll