Ntk bug 0002

Report date: 11/09/2005 16:19

if in a node A you run netsukuku_d and after change ip, when B r_node of A hooks, netsukuku_d of B exit

Last output

# Preparing the tcp listening socket on port 269
# Tcp daemon on port 269 up & running
+ The hook begins. Starting to scan the area
+ Launching radar_scan 1 of 3
# Radar scan 0x6ea1f738 activated
+ Radar: New node found: 192.168.0.1, ext: 0, level: 0
+ We have 1 nodes around us. (0 are hooking)
# Quest GET_FREE_NODES to 192.168.0.1
# Receiving reply for the GET_FREE_NODES request (id 0x71c60fde)
# Received 255 free nodes
# Quest GET_QSPN_ROUND to 192.168.0.1
# Receiving reply for the GET_QSPN_ROUND request (id 0x73671bf9)
# qspn_id: 4 qtime[0] set to 3326, to_rtt: 0
# qspn_id: 0 qtime[1] set to 6101, to_rtt: 0
# qspn_id: 1 qtime[2] set to 16102, to_rtt: 0
# qspn_id: 1 qtime[3] set to 14101, to_rtt: 0
+ Setting the 13.26.254.223 ip to all the interfaces
# Quest GET_EXT_MAP to 192.168.0.1
# Receiving reply for the GET_EXT_MAP request (id 0x118edac9)
! None of the rnodes in this area gave me the int_map

Program exited with code 01.
(gdb)

Solved

A new check was added in get_free_nodes(), which verifies that the IP is the sending rnode is the same of the internal map. This is only available from the 0.0.5b version.