[lldp-devel] [PATCH 2/8] vdp_clif change module id

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


Change module ID to match the same number as stored
in the type field in the lldp_vdp_clif.c file

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

diff --git a/lldp_vdp_clif.c b/lldp_vdp_clif.c
index 3955d30..78a8a05 100644
--- a/lldp_vdp_clif.c
+++ b/lldp_vdp_clif.c
@@ -124,7 +124,7 @@ struct lldp_module *vdp_cli_register(void)
 		fprintf(stderr, "failed to malloc module data\n");
 		return NULL;
        }
-       mod->id = LLDP_MOD_VDP;
+       mod->id = (LLDP_MOD_VDP << 8) | LLDP_VDP_SUBTYPE;
        mod->ops = &vdp_ops_clif;
        return mod;
 }
-- 
1.7.1



More information about the lldp-devel mailing list