decode_addr
decode_addr(addr, hash, s_size, l_map, &idx, &sub_addr);
decode_addr(res->channel_addr, hash, s_size, l_map, &idx, &sub_addr);