X-Git-Url: http://rtime.felk.cvut.cz/gitweb/frescor/fwp.git/blobdiff_plain/c5a922356c4484b8bb7696f084d0aabed1363c95..dfc394b2f0f7117af004a99f331950fff895170f:/fwp/lib/fwp/fwp_vres.c diff --git a/fwp/lib/fwp/fwp_vres.c b/fwp/lib/fwp/fwp_vres.c index 5f1394d..1a4de36 100644 --- a/fwp/lib/fwp/fwp_vres.c +++ b/fwp/lib/fwp/fwp_vres.c @@ -230,7 +230,7 @@ fwp_vres_t *fwp_vres_alloc() static int apply_params(fwp_vres_t *vres) { - int rv; + int rv = 0; vres->period = vres->params.period; vres->budget = vres->params.budget; set_flag(vres, UNTOUCHED); @@ -509,7 +509,7 @@ static void* fwp_vres_tx_thread(void *_vres) } /*int fwp_vres_bind(fwp_vres_t *vres, struct fwp_endpoint *epoint)*/ -int fwp_vres_bind(fwp_vres_t *vres, struct fwp_endpoint *ep, int sockd) +int fwp_vres_bind(fwp_vres_t *vres, struct fwp_endpoint *ep, int sockd, struct in_addr *src) { int rv = 0; @@ -526,6 +526,7 @@ int fwp_vres_bind(fwp_vres_t *vres, struct fwp_endpoint *ep, int sockd) } vres->ac_sockd = sockd; + *src = vres->params.src; rv = fwp_vres_set_ac(vres->ac_sockd, vres->params.ac_id); if (rv) goto err;