[hipl-users] Re: hipsetup failes

  • From: Simon Schuetz <simon.schuetz@xxxxxxxxxxxxx>
  • To: HIPL Users <hipl-users@xxxxxxxxxxxxx>
  • Date: 09 Feb 2004 10:49:48 +0100

> ->
> -> ========================================================
> -> Responder mode
> -> nc6: listening on :: 12345 ...
> -> nc6: listening on 0.0.0.0 12345 ...
> -> nc6: connect to 421d:6d7e:6e2e:d0d:de05:799b:2a48:e45d 12345 from
> -> 534a:5fa4:78e:ad51:cfeb:fabd:c52d:bb0 1121
> 
> Determining from this the TCP SYN packet from the initiator got through,
> so the HIP base exchange was successful. I guess that the previously
> mentioned error from grep causes the test in hipsetup script's function
> check_hip_state_established to fail, so hipsetup tells that the base
> exchange failed. If you look at file /proc/net/hip/sdb_state on both hosts
> and see that the peer states are established, then the base exchange was
> successful and the only problem is some bug in hipsetup script. See if the
> problem continues if you use original host name "oops" where you now have
> changed "mario".

I had a closer look to the hipsetup script. My /etc/hip/hosts file had
an entry like:

421d:6d7e:6e2e:0d0d:de05:799b:2a48:e45d<tab>mario

Line 278 in hipsetup shows, that the delimiter ( -d" " ) is set to a
space:

       if grep `grep -m 1 $PEER_NAME /etc/hip/hosts|cut -f1 -d" "` \
            $HIP_PROC_SDB | grep -q ^estab >/dev/null

Therefore the entries in /etc/hip/hosts have to look like

421d:6d7e:6e2e:0d0d:de05:799b:2a48:e45d<space>mario


Simon



Other related posts: