[support] error when proting mip6d to arm

qhtf126 qhtf126 at 126.com
Wed Sep 23 10:56:35 JST 2009


Hi,

I have  ported the uimp-0.4  and 2.6.24 kernel  to the s3c6410  board .  When  I  run  the  mip6d in  the board it  will be stop itself , but  i used the same kernel and mip6d works  well  in  a computer    and   i  also used     it   in    s3c2410  with   the kernel  2.6.23    .  From   the comparsion  of the debug info and  analysis  the mip6d code , i think  the  problem   is  caused  by  the  rtnl_talk()  fuction   in the  Libnetlink.c .  

 

       if (h->nlmsg_type == NLMSG_ERROR) {

                            struct nlmsgerr *err = (struct nlmsgerr*)NLMSG_DATA(h);

                            if (l < sizeof(struct nlmsgerr)) {

                                   NLDBG("ERROR truncated\n");

                            } else {

                                   errno = -err->error;

                                   if (errno == 0) {

                                          if (answer)

                                                 memcpy(answer, h, h->nlmsg_len);

                                          return 0;

                                   }

                                   NLDBG_SYS("RTNETLINK answers");

                            }

                            return -1;

                     }

I  printed  the  err-> error ,  In the  computer  the  errno is 0 , in the arm  it is not 0 ,  I don’t  know why  there  are  the  differences ,  both  the  h ->nlmg_type  h->nlmg_long   and h->nlmg_flags are the same  , but  the  struct nlmsgerr *err  are   different 。

 Can anyone help me about this issue ? Thank you very much .

 Best Regards .

 

The debug info in the board :

 

mip6d[1124]: MIPL Mobile IPv6 for Linux v2.0.2-umip-0.4 started (Mobile Node)   

0:26:2:983 main: MIPL Mobile IPv6 for Linux startenetlink: 76 bytes leftover af.

d in debug mode, not detaching from terminal                                    

0:26:2:984 conf_show: config_file = /home/mn.conf                               

0:26:2:984 conf_show: vt_hostname = localhost                                   

0:26:2:984 conf_show: vt_service = 7777                                         

0:26:2:984 conf_show: mip6_entity = 1                                           

0:26:2:984 conf_show: debug_level = 10                                          

0:26:2:984 conf_show: debug_log_file = stderr                                   

0:26:2:984 conf_show: PolicyModulePath = [internal]                             

0:26:2:985 conf_show: DefaultBindingAclPolicy = 0                               

0:26:2:985 conf_show: NonVolatileBindingCache = disabled                        

0:26:2:985 conf_show: KeyMngMobCapability = disabled                            

0:26:2:985 conf_show: UseMnHaIPsec = disabled                                   

0:26:2:985 conf_show: MnMaxHaBindingLife = 262140                               

0:26:2:985 conf_show: MnMaxCnBindingLife = 420                                  

0:26:2:985 conf_show: MnRouterProbes = 0                                        

0:26:2:986 conf_show: MnRouterProbeTimeout = 0.000000                           

0:26:2:986 conf_show: InitialBindackTimeoutFirstReg = 1.500000                  

0:26:2:986 conf_show: InitialBindackTimeoutReReg = 1.000000                     

0:26:2:986 conf_show: UseCnBuAck = disabled                                     

0:26:2:986 conf_show: DoRouteOptimizationMN = disabled                          

0:26:2:987 conf_show: MnUseAllInterfaces = disabled                             

0:26:2:987 conf_show: MnDiscardHaParamProb = disabled                           

0:26:2:987 conf_show: SendMobPfxSols = enabled                                  

0:26:2:987 conf_show: OptimisticHandoff = disabled                              

0:26:2:987 conf_show: SendMobPfxAdvs = enabled                                  

0:26:2:987 conf_show: SendUnsolMobPfxAdvs = enabled                             

0:26:2:987 conf_show: MaxMobPfxAdvInterval = 86400                              

0:26:2:988 conf_show: MinMobPfxAdvInterval = 600                                

0:26:2:988 conf_show: HaMaxBindingLife = 262140                                 

0:26:2:988 conf_show: DoRouteOptimizationCN = disabled                          

0:26:2:991 xfrm_cn_init: Adding policies and states for CN                      

0:26:2:993 Failed to add policy:                                                

0:26:2:993 nlmsg_flags 405                                                      

nlmsg_type 19                                                                   

0:26:2:994 sel.daddr 0:0:0:0:0:0:0:0                                            

sel.saddr 0:0:0:0:0:0:0:0                                                       

sel.dport 0                                                                     

sel.dport_mask 0                                                                

sel.sport 500                                                                   

sel.sport_mask ffff                                                             

sel.prefixlen_d 0                                                               

sel.prefixlen_s 0                                                               

sel.proto 135                                                                   

sel.ifindex 0                                                                   

0:26:2:994 priority 9                                                           

dir 0                                                                           

action 0                                                                        

type 1        

..........................

mip6d[1124]: MIPL Mobile IPv6 for Linux v2.0.2-umip-0.4 stopped (Mobile Node)

                        



 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ml.nautilus6.org/pipermail/support/attachments/20090923/363f7edc/attachment-0001.htm 


More information about the Support mailing list