But did you killed hipd before executing "hipconf get hi default"? If you don't want to execute hipd in background you have to execute hipconf get hi default in another terminal
antonio quisillo <antonio.quisillo@xxxxxxxxx> ha escrito:
Hi Miika, I've done what you wrote me in your previous mail and I got this messages: On server host: 1.execute "hipd" root@OpenWrt:/# hipd debug(hipd.c:342@hipd_main): foreground info(hipd.c:351@hipd_main): hipd pid=1028 starting debug(init.c:175@hip_set_os_dep_variables): sysname=Linux nodename=OpenWrt release=2.6.27.8 version=#3 SMP Thu Dec 11 11:08:59 CET 2008 machine=i686 debug(dh.c:164@hip_init_cipher): Generating DH keys debug(dh.c:139@hip_regen_dh_keys): DH key for group 1 generated debug(dh.c:139@hip_regen_dh_keys): DH key for group 2 generated debug(dh.c:139@hip_regen_dh_keys): DH key for group 3 generated debug(dh.c:142@hip_regen_dh_keys): 3 keys generated info(init.c:265@hipd_init): Initializing HIP relay / RVS. debug(hiprelay.c:787@hip_relay_read_config): Read relay configuration file with following values: Whitelist enabled: YES Number of HITs in the whitelist: 0 Minimum lifetime: 112 Maximum lifetime: 158 info(hiprelay.c:92@hip_relay_init): Read configuration file "/etc/hip/relay_config" successfully. debug(init.c:281@hipd_init): Initializing the netdev_init_addresses debug(netdev.c:496@hip_netdev_init_addresses): Initializing addresses... debug(netdev.c:135@filter_address): Address ignored: address family is unknown. debug(netdev.c:223@add_address_to_list): Address failed the address filter test. debug(netdev.c:135@filter_address): Address ignored: address family is unknown. debug(netdev.c:223@add_address_to_list): Address failed the address filter test. debug(netdev.c:106@filter_address): IPv4 address to filter is 127.0.0.1. debug(netdev.c:125@filter_address): Address ignored: IPV4_LOOPBACK. debug(netdev.c:223@add_address_to_list): Address failed the address filter test. debug(netdev.c:106@filter_address): IPv4 address to filter is 192.168.5.1. debug(netdev.c:221@add_address_to_list): Address passed the address filter test. debug(netdev.c:261@add_address_to_list): Added a new IPv6 address to ifindex2spi map. The map has 1 addresses. debug(netdev.c:65@filter_address): IPv6 address to filter is ::1. debug(netdev.c:75@filter_address): Address ignored: IPV6_LOOPBACK. debug(netdev.c:223@add_address_to_list): Address failed the address filter test. debug(netdev.c:65@filter_address): IPv6 address to filter is fe80::5054:ff:fe12:3451. debug(netdev.c:81@filter_address): Address ignored: LINKLOCAL. debug(netdev.c:223@add_address_to_list): Address failed the address filter test. debug(init.c:676@hip_init_nat_sock_udp): hip_init_nat_sock_udp() invoked. debug(init.c:710@hip_init_nat_sock_udp): UDP socket created and bound to addr: 0.0.0.0 debug(init.c:337@hipd_init): hip_raw_sock = 6 debug(init.c:338@hipd_init): hip_raw_sock_v4 = 7 debug(init.c:339@hipd_init): hip_nat_sock_udp = 8 debug(init.c:340@hipd_init): hip_icmp_sock = 9 debug(init.c:348@hipd_init): Setting SP debug(xfrmapi.c:555@hip_setup_hit_sp_pair): Start debug(xfrmapi.c:564@hip_setup_hit_sp_pair): hip_setup_hit_sp_pair debug(xfrmapi.c:576@hip_setup_hit_sp_pair): End debug(init.c:352@hipd_init): Setting iface dummy0 error(nlink.c:808@do_chflags): SIOCGIFFLAGSNo such device error(nlink.c:808@do_chflags): SIOCGIFFLAGSNo such device error(hipd.c:355@hipd_main): hipd_init() failed! error(init.c:748@hip_exit): Signal: 1 debug(hadb.c:2625@hip_delete_all_sp): debug(hadb.c:2627@hip_delete_all_sp): DEBUG: DUMP SPI LISTS debug(hadb.c:2637@hip_delete_all_sp): DELETING HA HT info(netdev.c:321@delete_all_addresses): address to be deleted : 192.168.5.1 error(nlink.c:808@do_chflags): SIOCGIFFLAGSNo such device info(init.c:781@hip_exit): Uninitializing RVS / HIP relay database and whitelist. info(init.c:790@hip_exit): hip_raw_sock_v6 info(init.c:794@hip_exit): hip_raw_sock_v4 info(init.c:798@hip_exit): hip_nat_sock_udp info(init.c:806@hip_exit): hip_nl_ipsec.fd info(init.c:810@hip_exit): hip_nl_route.fd debug(hadb.c:2604@hip_uninit_hadb): debug(hadb.c:2606@hip_uninit_hadb): DEBUG: DUMP SPI LISTS info(hipd.c:660@hipd_main): hipd pid=1028 exiting, retval=1 2. run "hipconf get hi default" root@OpenWrt:/# hipconf get hi default Waiting to receive daemon info. recv() peek error (is hipd running?) Failed to send a message to the HIP daemon. Error: Cannot configure the HIP daemon. root@OpenWrt:/# What means these messages? How can I simulate the Base Exchange between two local host using IPv4 address?