[quagga-dev 9427] Crash in BGP code. . . .

Manjunath.2.Patil MP0075847 at TechMahindra.com
Fri Jun 15 10:55:09 BST 2012


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.com
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.
============================================================================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20120615/2da13f90/attachment-0001.html>


More information about the Quagga-dev mailing list