curr_budget = 0;
while ((curr_budget < budget)&&
(msgb = fwp_msgq_dequeue(msgq))) {
- rc = __fwp_vres_send(ac_sockd, msgb);
+ rc = __fwp_vres_send(vres->ac_sockd, msgb);
if (!(rc < 0)) {
FWP_DEBUG("Message sent through AC%d\n",ac_id);
/* Switch to this in the future
return -EPERM;
}
-int _fwp_vres_bind(fwp_vres_d_t vresd, fwp_endpoint_d_t epointd)
+int _fwp_vres_bind(fwp_vres_d_t vresd, fwp_endpoint_d_t epointd, int sockd)
{
fwp_vres_t *vres = vresd;
+ fwp_endpoint_t *epoint = epointd;
int rv = 0;
pthread_mutex_lock(&fwp_vres_table.lock);
rv = -EPERM;
else {
vres->epointd = epointd;
+ /*TODO*/
+ vres->ac_sockd = sockd;
vres->status = FWP_VRES_BOUND;
}
pthread_mutex_unlock(&fwp_vres_table.lock);