if ((rv = fwp_init()))
return rv;
- return fra_fwp_init(frsh_forb_global.orb, frsh_forb_global.fcb,
- &frsh_forb_global.alloc_executor);
+ return fra_fwp_init();
}
int fwp_fna_network_budget_to_bytes(const frsh_resource_id_t resource_id,
port = (unsigned int) endpoint->stream_id;
attr = (fwp_endpoint_attr_t*) endpoint->endpoint_protocol_info.send.body;
rv = fwp_send_endpoint_create(node, port, attr, &fwp_epoint);
- if (rv)
- return rv;
endpoint->protocol_info.body = fwp_epoint;
- return 0;
+ return rv;
}
int fwp_fna_receive_endpoint_created(fna_endpoint_data_t *endpoint)
endpoint->protocol_info.body = fwp_epoint;
fwp_endpoint_get_params(fwp_epoint, &node, &port, attr);
- endpoint->stream_id = fwp_epoint->port;
+ endpoint->stream_id = port;
+ FWP_DEBUG("PORT= %d\n", port);
return 0;
}