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);
}
/*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;
}
vres->ac_sockd = sockd;
+ *src = vres->params.src;
rv = fwp_vres_set_ac(vres->ac_sockd, vres->params.ac_id);
if (rv)
goto err;