[hipl-users] Re: Hipsetup failure

  • From: Mika Kousa <mkousa@xxxxxxxxx>
  • To: hipl-users@xxxxxxxxxxxxx
  • Date: Fri, 4 Feb 2005 17:42:33 +0200 (EET)

On Fri, 4 Feb 2005, Irene Garcia Vargas wrote:

-> Hi All,
-> I get the sources from the new location,and could rebuild them with the new 
-> method.Since patching I can test well the HIP connection between two of my 
-> hosts with the {server/conntest-client-gai}-connect. (i.e.The status in 
-> the /proc/net/hip is ESTABLISHED, and I can write from one side to the 
-> other...)
-> The hipsetup however doesn't succeed...
-> I have pasted below the error that I got, any idea of what can be wrong it 
-> will be welcome!
-> Regards,
-> Irene
-> 
-> ksat77:/home/igvargas/hipl--main--2.6/test# ./hipsetup -m 
-> -d /home/igvargas/hipl--main--2.6/ -i ksat92.domain.name
->  
-> ...
-> {...modules intalllation...}
-> ....
-> 
-> make: Leaving directory `/home/igvargas/hipl--main--2.6/linux'
-> insmod /lib/modules/2.6.9/kernel/net/ipv6/hip/hipmod.ko
-> Using hostname: ksat77
-> No key file given, use default
-> HIT is 5b30:cb0e:14e6:1942:992f:552e:fb7:1338
-> Initiator mode
-> Connecting to peer host ksat92.domain.name
-> Input some text, press enter and ctrl+d
-> Trying to connect to 6844:bf2e:e1c:a50a:d83e:1a9a:2342:b9
-> trying next
-> failed to connect

The conntest-client-gai does the HIT-to-IP mapping before it issues the 
connect call. I have a vague feeling that this error might be because the 
conntest-client-gai program might call connect() just before the 
previously done HIT-to-IP mapping is completed in the kernel. This 
assumption needs to be investigated.

Maybe doing a dmesg command (at the initiator) after running the hipsetup 
might show some information if the mapping is finished after some other 
socket calls are called. If this would really be the case, then running 
conntest-client-gai manually after the failed hipsetup should work a 
expected.

-> awk: warning: escape sequence `\ ' treated as plain ` '

This awk bug has been around some time, but we just have not looked at it 
so closely yet (read: laziness).

-> ### HIP BASE EXCHANGE FAILED !!! ####

You get this error if the line "grep PEER_HIT /proc/net/hip/sdb_state" 
does not print ESTABLISHED right at the start of the line. If there really 
is ESTABLISHED in /proc/net/hip/sdb_state, then there is a bug in the 
hipsetup script.

-> Note:
-> The HIT that is trying to connect was located in the /etc/hip/hosts  ksat92 
-> entry (but there,with the format 1111:2222:3333:4444:5555:6666:7777:8888), 
-> and I checked also that it is the same as in the /proc/net/hip/lhi ksat92's 
-> file....

Do you have that ".domain.name" part for the host in /etc/hip/hosts, if 
you also give ksat92.domain.name as the hostname for the hipsetup script ?

-> I looked also about the awk warning,without success... 

The awk warning can be considered a bug in the script. We should rewrite 
that awk part of the script again.

Other related posts: