Re:Re: [mpls-linux-general] A question about quit( )
Status: Beta
Brought to you by:
jleu
From: <zjh...@so...> - 2002-03-19 01:34:24
|
hi,Jim I had read the ldp_cfg.c.I want to use the func( ) in ldp_cfg.c to finish the quit( ). I will broke the following function in order: ldp_cfg_range_set( ) ldp_cfg_if/peer_set( ) ldp_cfg_entity_set( ) ldp_cfg_global_set( ) ldp_cfg_global_close( ) ldp_global_shutdown( ) ldp_global_delete( ) Is it practical? I also have seen ldp_global.c.There seem to be other function.Perhabps they can do the same work! Can you give me your advice? At last ,I want report a bug to you. When the program run in VXWORKS.There is another problem.The message type is always wrong.Because the Ubit and the MESSAGE TYPE is 2 BYTE together.They work wrong in BIG_ENDIAN BYTE ORDER. Such as HELLO message TYPE is 0X0100;But it will be 0X0200 if running in vxworks.This is caused by the order of Ubit and MESSAGE TYPE FIELD. perhaps you can use the makefile option such as _D_BIG_ENDIAN to solve it.Now the makefile option _D_BIG_ENDIAN doesn't work. All thanks!! Your sincerely :zhang jianhui ----- Original Message ----- From: James R. Leu To: zjh...@so... Cc: mpl...@li... Subject: Re: [mpls-linux-general] A question about quit( ) Sent: Tue Mar 19 07:50:58 CST 2002 > Hello, > > See my response in-line. > > On Fri, Mar 15, 2002 at 09:59:03PM +0800, zjh...@so... wrote: > > hi,Jim > > I have read your code about the command func :quit( ).In linux you use the system API "exit( )"to finish almost all the work. They work well in Linux. > > > > I have also tried your code in vxworks .Using the quit command ofent make program down. > > So I want to write a quit( ) but not use the "exit( )",do everything by myself.Can you > > give me some advice:such as the sequence to close"session,interface,adjacency,global "etc. > > Removing the entities will tear down the sessions/adjacecncies. Then removing > the global will cleanup the porting layer. > > > I am busy in try to port your code to vxworks.Once I finish it ,I will share my idea and my > > experience and my code with all in the mailing list.I will try my best. > > Excellent! I have just starting working on ldp-portabel again, so hopefully > I can help you fix any LDP related bugs that you find. > > Jim > > > > > > All thanks!! > > > > Your sincerely :zhang jianhui > > > > _______________________________________________ > > mpls-linux-general mailing list > > mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mpls-linux-general > > -- > James R. Leu |