aboutsummaryrefslogtreecommitdiffstats
path: root/src/uri/vppcom.h
diff options
context:
space:
mode:
authorDave Wallace <dwallacelf@gmail.com>2017-10-09 01:43:42 -0400
committerDave Wallace <dwallacelf@gmail.com>2017-10-10 22:05:52 +0000
commit35830af800aefdcc6a3767bc101b4c300a74651b (patch)
treea3bef29c3fe466a7bd45e61cb53568b9557cf0d9 /src/uri/vppcom.h
parentcea194d8f973a2f2b5ef72d212533057174cc70a (diff)
Add VCL session get/set attributes api function.
Change-Id: I72b0c063e89bf8299699dafec2a7e0395b86c8b9 Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/uri/vppcom.h')
-rw-r--r--src/uri/vppcom.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/uri/vppcom.h b/src/uri/vppcom.h
index b7c802897d9..387970f7ef3 100644
--- a/src/uri/vppcom.h
+++ b/src/uri/vppcom.h
@@ -61,6 +61,16 @@ typedef enum
VPPCOM_ETIMEDOUT = -ETIMEDOUT,
} vppcom_error_t;
+typedef enum
+{
+ VPPCOM_ATTR_GET_NREAD,
+ VPPCOM_ATTR_PEEK_NREAD,
+ VPPCOM_ATTR_GET_FLAGS,
+ VPPCOM_ATTR_SET_FLAGS,
+ VPPCOM_ATTR_GET_LCL_ADDR,
+ VPPCOM_ATTR_GET_PEER_ADDR,
+} vppcom_attr_op_t;
+
/*
* VPPCOM Public API Functions
*/
@@ -148,6 +158,8 @@ extern int vppcom_epoll_ctl (uint32_t vep_idx, int op,
struct epoll_event *event);
extern int vppcom_epoll_wait (uint32_t vep_idx, struct epoll_event *events,
int maxevents, double wait_for_time);
+extern int vppcom_session_attr (uint32_t session_index, uint32_t op,
+ void *buffer, uint32_t * buflen);
#endif /* included_vppcom_h */