I have used gdb and cscope to trace the code flow as following:
commit_changes -> send_apply_config_change -> | rtrmgr_0_1_apply_config_change 
->apply_config_change -> change_config -> commit_change_pass1 -> 
commit_change_pass2 -> commit_changes.

But i still can not find the code in rtrmgr explicitly calling (ANY) xrl 
interface functions to any target module.
On the other hand the target mudule did receive STCP ios and the corresponding 
target functions were called.

I do not think in the case of adding static route rtrmgr can talk to fea 
directly. The only puzzle was how on the earth rtrmgr called the function 
xrlStaticRouteV0p1Client::send_add_route4.

Thanks for you reply.

Li



--- On Fri, 10/9/09, Ben Greear <[email protected]> wrote:

> From: Ben Greear <[email protected]>
> Subject: Re: [Xorp-hackers] static xrl interface calls
> To: "Li Zhao" <[email protected]>
> Cc: [email protected]
> Date: Friday, October 9, 2009, 5:23 PM
> On 10/09/2009 01:05 PM, Li Zhao
> wrote:
> > Actually this is a generic question. For any new
> config coming from xorpsh, how are these xrl client
> functions sent to the target process from rtrmgr?
> 
> Search for 'commit'.  There is some logic in that code
> to send updates to
> modules through xrl commands.
> 
> I think programs also talk directly with fea...I don't
> understand it all that well
> myself at this time.
> 
> Thanks,
> Ben
> 
> >
> > --- On Thu, 10/8/09, Li Zhao<[email protected]> 
> wrote:
> >
> >> From: Li Zhao<[email protected]>
> >> Subject: [Xorp-hackers] static xrl interface
> calls
> >> To: [email protected]
> >> Date: Thursday, October 8, 2009, 11:22 AM
> >> As document said,
> >> XrlStaticRoutesV0p1Client::send_add_route4 is
> called from
> >> rtrmgr. But actually i do not see that symbol in
> rtrmgr.
> >> Actually i do not see any process is calling this
> method. On
> >> the other hand, target call
> >> XrlStaticRoutsNode::static_routes_0_1_add_route4
> was called
> >> on xorp_static_routes. I do not know how was this
> triggered.
> >> Can any body explain to me? Thanks.
> >>
> >> Li
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> Xorp-hackers mailing list
> >> [email protected]
> >> http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
> >>
> >
> >
> >
> >
> > _______________________________________________
> > Xorp-hackers mailing list
> > [email protected]
> > http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers
> 
> 
> -- 
> Ben Greear <[email protected]>
> Candela Technologies Inc  http://www.candelatech.com
> 
> 


      

_______________________________________________
Xorp-hackers mailing list
[email protected]
http://mailman.ICSI.Berkeley.EDU/mailman/listinfo/xorp-hackers

Reply via email to