aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lb
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2017-04-24 10:46:54 -0400
committerFlorin Coras <florin.coras@gmail.com>2017-04-25 16:18:42 +0000
commit11b8dbf78af49d270a0e72abe7dea73eec30d85f (patch)
tree5c9c513483f5c468efcb64b82c03c32733dc3a77 /src/plugins/lb
parent45d3496f3d86ee1a930ce0ffd6ca3d1730355eb8 (diff)
"autoreply" flag: autogenerate standard xxx_reply_t messages
Change-Id: I72298aaae7d172082ece3a8edea4217c11b28d79 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/plugins/lb')
-rw-r--r--src/plugins/lb/lb.api21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/plugins/lb/lb.api b/src/plugins/lb/lb.api
index 39ee3c8f98b..32cc669b518 100644
--- a/src/plugins/lb/lb.api
+++ b/src/plugins/lb/lb.api
@@ -8,7 +8,7 @@
@param flow_timeout - Time in seconds after which, if no packet is received
for a given flow, the flow is removed from the established flow table.
*/
-define lb_conf
+autoreply define lb_conf
{
u32 client_index;
u32 context;
@@ -18,11 +18,6 @@ define lb_conf
u32 flow_timeout;
};
-define lb_conf_reply {
- u32 context;
- i32 retval;
-};
-
/** \brief Add a virtual address (or prefix)
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@@ -33,7 +28,7 @@ define lb_conf_reply {
for this VIP (must be power of 2).
@param is_del - The VIP should be removed.
*/
-define lb_add_del_vip {
+autoreply define lb_add_del_vip {
u32 client_index;
u32 context;
u8 ip_prefix[16];
@@ -43,11 +38,6 @@ define lb_add_del_vip {
u8 is_del;
};
-define lb_add_del_vip_reply {
- u32 context;
- i32 retval;
-};
-
/** \brief Add an application server for a given VIP
@param client_index - opaque cookie to identify the sender
@param context - sender context, to match reply w/ request
@@ -56,7 +46,7 @@ define lb_add_del_vip_reply {
@param as_address - The application server address (IPv4 in lower order 32 bits).
@param is_del - The AS should be removed.
*/
-define lb_add_del_as {
+autoreply define lb_add_del_as {
u32 client_index;
u32 context;
u8 vip_ip_prefix[16];
@@ -64,8 +54,3 @@ define lb_add_del_as {
u8 as_address[16];
u8 is_del;
};
-
-define lb_add_del_as_reply {
- u32 context;
- i32 retval;
-};