[Xorp-users] Help

Ben Greear greearb at candelatech.com
Thu Aug 7 09:08:08 PDT 2014


On 08/07/2014 05:26 AM, 전해숙 wrote:
> 
> I have one more thing to ask.
> In click router, there is a <vector>string.
> How can I use it on the XORP ?
>  
> We are changing click router for new protocol.
> So, We want to check the status of the click such as elements list, count of each element.
> So, I want to use CotrolSocketClient class on the XORP.
> By the way,  the string format of XORP is different from that of click router.  

Xorp is written in C++, so using the STL and std::string should be fine
as far as I remember....

It has been a while since I looked at xorp code, so please post examples
of the code you are talking about, both click and xorp code...

Thanks,
Ben



>  
>  
> Littletree.
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> *보낸 사람 : *"전해숙" <hsjeon88 at etri.re.kr>
> *보낸 날짜 : *2014-08-07 18:46:09 ( +09:00 )
> *받는 사람 : *xorp-users at xorp.org <xorp-users at xorp.org>
> *참조 : *
> *제목 : *RE: Help
> 
> 
> I overcome the below problems.
>  
> But I have a question.
> My software programs is user mode click. 
> and I want to control this. 
> It uses std::string. 
> In xorp, we use different string.
> How can I change string of xorp into std::string of my user mode click ?
>  
> Could you give me some advices ?
>  
> Littletree.
>  
>  
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> *보낸 사람 : *"전해숙" <hsjeon88 at etri.re.kr>
> *보낸 날짜 : *2014-08-06 15:58:28 ( +09:00 )
> *받는 사람 : *xorp-users at xorp.org <xorp-users at xorp.org>
> *참조 : *
> *제목 : *Help
> 
> 
>  
> 
> First I made /xorp/clickinf/Sconscript.
> 
> I changed  /xorp/xrl/interfaces/SConscript , /xorp/arl/targets/SConscript, /xorp/etc/templates/SConscript for my clickinf directory.
> But running scons, there is a KeyError : 'enable_clickinf'.
>  
> How can I avoid this error ???
>  
> Littletree.
>  
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> *보낸 사람 : *"전해숙" <hsjeon88 at etri.re.kr>
> *보낸 날짜 : *2014-08-06 11:40:58 ( +09:00 )
> *받는 사람 : *xorp-users at xorp.org <xorp-users at xorp.org>
> *참조 : *
> *제목 : *Help
> 
> 
>  
> 
> 
>  
> 
> I am a begginer at XORP.
> 
> XORP uses scons. 
> 
> Now, I want to add my new creating directory, clickinf. 
> 
> So I change SConscript file which adds new sub directory. 
> 
> But after scons, when checking obj directory, my directiry is not created.
> 
> So, I also deleted the existing directory cli or bgp in obj directory. 
> 
> And I tried scons again, but cli or bgp directory is also not created. 
> 
> Now I all deleted directory in obj. 
> 
> after scons, any directory is not created. 
> 
> What problems do I have ???
> 
>  
> 
> I attached SConscript file  which are using now. 
> 
> I just changed SConscript file for mine. 
> 
> I add my new directory clickinf including sources to the XORP sources. 
> 
>  
> 
> Before scons, I do 'rm -fr /xorp/obj'. but it only fails. Anything of object file is not created.
> 
>  
> 
>  
> 
>  
> 
> //////////////////////////////////
> 
> // SConscript file 
> 
> /////////////////////////////////
> 
> # Copyright (c) 2009-2011 XORP, Inc and Others
> #
> # This program is free software; you can redistribute it and/or modify
> # it under the terms of the GNU General Public License, Version 2, June
> # 1991 as published by the Free Software Foundation. Redistribution
> # and/or modification of this program under the terms of any other
> # version of the GNU General Public License is not permitted.
> #
> # This program is distributed in the hope that it will be useful, but
> # WITHOUT ANY WARRANTY; without even the implied warranty of
> # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For more details,
> # see the GNU General Public License, Version 2, a copy of which can be
> # found in the XORP LICENSE.gpl file.
> #
> # XORP Inc, 2953 Bunker Hill Lane, Suite 204, Santa Clara, CA 95054, USA;
> # http://xorp.net
>  
> # $ID$
>  
> Import('env')
>  
> subdirs = [
>     'cli',
>     'libcomm',
>     'libxorp',
>     'libxipc',
>     'libproto',
>     'libfeaclient',
>     'xrl/targets',
>     'xrl/interfaces',
>   #  'xrl/tests',# XXX not in use.
>     'etc/templates',
>     'fea',
>     'fib2mrib',
>     'mld6igmp',
>     'mrt',
>     'pim',
>     'policy',
>     'rib',
>     'rtrmgr',
>     'static_routes',
>     'utils',
>     ]
>  
> if env['enable_olsr']:
>     subdirs.append('contrib/olsr')
>  
> if env['enable_wrapper']:
>     subdirs.append('contrib/wrapper')
>  
> if env['enable_clickinf']:  ####################################################### This is for mine. I added this for my purpose. 
>     subdirs.append('clickinf')
>  
> if env['enable_bgp']:
>     subdirs.append('bgp')
>  
> if env['enable_ospf']:
>     subdirs.append('ospf')
>     
> if env['enable_rip']:
>     subdirs.append('rip')
>  
> if env['enable_vrrp']:
>     subdirs.append('vrrp')
>  
>  
> SConscript(dirs = subdirs, exports='env')
> ======================================================
> 
>  
> 
> Littletree.  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
> 
> _______________________________________________
> Xorp-users mailing list
> Xorp-users at xorp.org
> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-users
> 


-- 
Ben Greear <greearb at candelatech.com>
Candela Technologies Inc  http://www.candelatech.com



More information about the Xorp-users mailing list