[lldp-devel] [PATCH 7/8] vdp add callback function client_cmd

Thomas Richter tmricht at linux.vnet.ibm.com
Fri Apr 5 11:43:35 UTC 2013


Add a call back function for client_cmd to collect VDP TLV
data for the llpdtool to be printed by the pretty print
TLV function.

Signed-off-by: Thomas Richter <tmricht at linux.vnet.ibm.com>
---
 lldp_vdp.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/lldp_vdp.c b/lldp_vdp.c
index ca746a9..57133d1 100644
--- a/lldp_vdp.c
+++ b/lldp_vdp.c
@@ -1659,10 +1659,18 @@ out_err:
 		   __func__, ifname, agent->type);
 }
 
+static int vdp_client_cmd(UNUSED void *data, UNUSED struct sockaddr_un *from,
+		   UNUSED socklen_t fromlen, char *ibuf, int ilen,
+		   char *rbuf, int rlen)
+{
+	return vdp_clif_cmd(ibuf, ilen, rbuf, rlen);
+}
+
 static const struct lldp_mod_ops vdp_ops =  {
 	.lldp_mod_register	= vdp_register,
 	.lldp_mod_unregister	= vdp_unregister,
 	.get_arg_handler	= vdp_get_arg_handlers,
+	.client_cmd             = vdp_client_cmd
 };
 
 /* vdp_register - register vdp module to lldpad
-- 
1.7.1



More information about the lldp-devel mailing list