diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2017-11-21 03:45:09 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2017-11-21 23:16:50 +0000 |
commit | 4878cbe276ec1131d0cf30ac5df18aa9ba699bc4 (patch) | |
tree | c0c6e746c75aac7e335d6caf96c4e68264b5eaec /src/vcl/vppcom.h | |
parent | 6a9b68b268f9dc87a221fac0ec9b0b67c16106ca (diff) |
VCL: close-on-empty state transition refactoring.
- Refactor session disconnect/close state
transitions. Only remove session state
when app calls close(). Add HUP/reset
feedback by returning ECONNRESET.
- Update debug messages.
- Use VCL_LOCK_AND_GET_SESSION macro more
extensively
Change-Id: I23d372834b901a6726e6d6c1061df73ad967882f
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'src/vcl/vppcom.h')
-rw-r--r-- | src/vcl/vppcom.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vcl/vppcom.h b/src/vcl/vppcom.h index 45ff11608e7..55710b782ee 100644 --- a/src/vcl/vppcom.h +++ b/src/vcl/vppcom.h @@ -65,6 +65,7 @@ typedef enum VPPCOM_EBADFD = -EBADFD, VPPCOM_EAFNOSUPPORT = -EAFNOSUPPORT, VPPCOM_ECONNRESET = -ECONNRESET, + VPPCOM_ENOTCONN = -ENOTCONN, VPPCOM_ECONNREFUSED = -ECONNREFUSED, VPPCOM_ETIMEDOUT = -ETIMEDOUT, } vppcom_error_t; @@ -123,6 +124,10 @@ vppcom_retval_str (int retval) st = "VPPCOM_ECONNRESET"; break; + case VPPCOM_ENOTCONN: + st = "VPPCOM_ENOTCONN"; + break; + case VPPCOM_ECONNREFUSED: st = "VPPCOM_ECONNREFUSED"; break; |