
MP0075847 at techmahindra
Jun 15, 2012, 2:55 AM
Post #1 of 2
(199 views)
Permalink
|
Hi All, I have added the new cli command in bgp_vty.c file. The command is to give the VEID to the router. Below is the piece of code pasted /* Set BGP LABEL BASE*/ DEFUN (bgp_router_labelbase, bgp_router_labelbase_cmd, "bgp router-labelbase LABELBASE", BGP_STR "Override configured router label base\n" "Manually configured router label base\n") { static struct bgp *bgp; bgp = vty->index; vty_out(vty, "LABEL BASE=%s%s", argv[0], VTY_NEWLINE); bgp->vpls_par.label_base = (u_int32_t)atoi(argv[0]); bgp_router_labelbase_set(bgp, atoi(argv[0])); return CMD_SUCCESS; } The problem is marked in red. When the PC hits the place it is crashing. So i suspect the stack corruption. Any anybody help me in solving this problem? Thanks in advance . . . Manjunath Patil | PROD ENGG | Tech Mahindra TechM - Bangalore - Hosur Road, Bangalore 560029, INDIA ( Office: +91 80 40249000 | Mobile: +91 9986016150 Email: mp0075847 [at] techmahindra www.techmahindra.com <http://www.techmahindra.com/> ============================================================================================================================ Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/tim/disclaimer.html">http://tim.techmahindra.com/tim/disclaimer.html</a> internally within Tech Mahindra. ============================================================================================================================
|