]> rtime.felk.cvut.cz Git - frescor/fwp.git/commitdiff
Compilation fixes
authorMartin Molnar <molnar@sum.(none)>
Wed, 11 Jun 2008 16:14:24 +0000 (18:14 +0200)
committerMartin Molnar <molnar@sum.(none)>
Wed, 11 Jun 2008 16:14:24 +0000 (18:14 +0200)
fwp/lib/core/fwp_endpoint.c
fwp/lib/core/fwp_vres.c

index a15f79c891acc4ffef8822e5f7af9144cd346525..985b642de9d624cf203527426b34bfe661ca49e1 100644 (file)
@@ -393,8 +393,6 @@ next_connection:
                                sizeof(int)*(epoint->nr_connections -i-1));
                }
        }
-       
-       goto next_connection;
 }
 
 /**
index b00ba772bd0fab9ba264da35edbb34b8ec9578c0..b363ad999a06836f005c899a3574113f55836afe 100644 (file)
@@ -306,7 +306,7 @@ static void* fwp_vres_tx_thread(void *_vres)
                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
@@ -345,9 +345,10 @@ int _fwp_vres_send(fwp_vres_d_t vresd, struct fwp_msgb* msgb)
                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);
@@ -355,6 +356,8 @@ int _fwp_vres_bind(fwp_vres_d_t vresd, fwp_endpoint_d_t epointd)
                rv = -EPERM;
        else { 
                vres->epointd = epointd;
+               /*TODO*/
+               vres->ac_sockd = sockd;
                vres->status = FWP_VRES_BOUND;
        }
        pthread_mutex_unlock(&fwp_vres_table.lock);