FWP_DEBUG("FWP Send endpoint created.\n");
-#ifndef FWP_CONTNEGT
+#ifndef FWP_WITH_CONTNEGT
/* Create vres with default parameters */
+ FWP_DEBUG("Creating default vres\n");
if (fwp_vres_create(&fwp_vres_params_default, &fwp_epoint->vresd)) {
goto err;
}
*/
int fwp_send_endpoint_bind(fwp_endpoint_d_t epointd, fwp_vres_d_t vresd)
{
- int rv;
+ int rv = 0;
+#ifdef FWP_WITH_CONTNEGT
fwp_endpoint_t *fwp_epoint = epointd;
fwp_epoint->vresd = vresd;
rv = fwp_vres_bind(vresd, fwp_epoint->sockd);
+#endif
/* if send endpoint is already bound
if (epoint->type == FWP_EPOINT_BOUND) {
fwp_send_endpoint_unbind(epoint);