]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/fwp/fwp_endpoint.c
Set correctly source address for sent packets (if specified in contract)
[frescor/fwp.git] / fwp / lib / fwp / fwp_endpoint.c
index 7eb7d0b7fb70086f3e71b25c44580bb6b5f3da84..93756afc15a62bc914b8c967d6e11248071d7f23 100644 (file)
@@ -397,7 +397,7 @@ int fwp_send_endpoint_bind(struct fwp_endpoint *ep, fwp_vres_t *vres)
                return FRSH_ERR_ALREADY_BOUND;
        
        ep->vres = vres;
-       rv = fwp_vres_bind(vres, ep, ep->sockd);
+       rv = fwp_vres_bind(vres, ep, ep->sockd, &ep->src);
 
        return rv;
 }