]> rtime.felk.cvut.cz Git - frescor/fwp.git/blobdiff - fwp/lib/fwp_fna.c
Added option FWP_CONTNEGT. If not defined, fwp can be tested without contract negotia...
[frescor/fwp.git] / fwp / lib / fwp_fna.c
index 76a6eeb5e3a52826bd4545793a66f1723099e50e..1f80dfa6ab16aca16523e344e95162517d8bb7e6 100644 (file)
@@ -17,7 +17,7 @@ int fwp_fna_send_endpoint_created(fna_endpoint_data_t  *endpoint)
 
        node = (unsigned int) endpoint->destination;
        port = (unsigned int) endpoint->stream_id;
-       attr = (fwp_endpoint_attr_t*) endpoint->protocol_info.body; 
+       attr = (fwp_endpoint_attr_t*) endpoint->endpoint_protocol_info.send.body; 
        rv = fwp_send_endpoint_create(node, port, attr, &fwp_epoint);
        if (rv)
                return rv;
@@ -46,7 +46,7 @@ int fwp_fna_receive_endpoint_created(fna_endpoint_data_t  *endpoint)
 int fwp_fna_send_endpoint_bind(fna_endpoint_data_t *endpoint, fna_vres_id_t vres)
 {
        return fwp_send_endpoint_bind(endpoint->protocol_info.body, 
-                                       (fwp_vres_t*) vres);
+                                       (fwp_endpoint_t*) vres);
 }
 
 int fwp_fna_send_endpoint_unbind(fna_endpoint_data_t *endpoint)