summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteven <sluong@cisco.com>2017-10-11 09:59:30 -0700
committerDave Wallace <dwallacelf@gmail.com>2017-10-12 01:43:17 +0000
commitb5a1160be5aea1fa41eb0c457a162c3c4f2f5694 (patch)
tree934983622a83da5991d93c1362ccbf1cb0be4921
parentb327c2b9541381e6aade400cee50f9cf12bb52d3 (diff)
VCL: Add REUSEADDR, BROADCAST, and V6ONLY to vppcom_session_attr API
1. Add the subject enum type 2. Fix a typo for the clib_warning Change-Id: I59f6d15d51c66b96022d51592d65c41755c1582a Signed-off-by: Steven <sluong@cisco.com>
-rw-r--r--src/uri/vppcom.c11
-rw-r--r--src/uri/vppcom.h3
2 files changed, 13 insertions, 1 deletions
diff --git a/src/uri/vppcom.c b/src/uri/vppcom.c
index 76a277246af..76acc471c1f 100644
--- a/src/uri/vppcom.c
+++ b/src/uri/vppcom.c
@@ -1766,7 +1766,7 @@ vppcom_app_create (char *app_name)
rv = vppcom_connect_to_vpp (app_name);
if (rv)
{
- clib_warning ("[%s] couldn't connect to VPP.", vcm->my_pid);
+ clib_warning ("[%d] couldn't connect to VPP.", vcm->my_pid);
return rv;
}
@@ -3106,6 +3106,15 @@ vppcom_session_attr (uint32_t session_index, uint32_t op,
else
rv = VPPCOM_EINVAL;
break;
+
+ case VPPCOM_ATTR_SET_REUSEADDR:
+ break;
+
+ case VPPCOM_ATTR_SET_BROADCAST:
+ break;
+
+ case VPPCOM_ATTR_SET_V6ONLY:
+ break;
}
done:
diff --git a/src/uri/vppcom.h b/src/uri/vppcom.h
index 387970f7ef3..a8adda78282 100644
--- a/src/uri/vppcom.h
+++ b/src/uri/vppcom.h
@@ -69,6 +69,9 @@ typedef enum
VPPCOM_ATTR_SET_FLAGS,
VPPCOM_ATTR_GET_LCL_ADDR,
VPPCOM_ATTR_GET_PEER_ADDR,
+ VPPCOM_ATTR_SET_REUSEADDR,
+ VPPCOM_ATTR_SET_BROADCAST,
+ VPPCOM_ATTR_SET_V6ONLY,
} vppcom_attr_op_t;
/*