X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=include%2Fvconn.h;h=e4de5caa19beefe70c656a9ae802f40d2e02d140;hb=88df6edbfaa4d4943e9f74f79973225c1c53297f;hp=46c43e561932570dfc43125d0a30fa693b19a40b;hpb=a14c841f32358e665b19b419c91c1f711e4b0431;p=sliver-openvswitch.git diff --git a/include/vconn.h b/include/vconn.h index 46c43e561..e4de5caa1 100644 --- a/include/vconn.h +++ b/include/vconn.h @@ -40,6 +40,7 @@ struct buffer; struct flow; struct pollfd; +struct ofp_header; /* Client interface. */ @@ -60,6 +61,7 @@ int vconn_send(struct vconn *, struct buffer *); int vconn_open_block(const char *name, struct vconn **); int vconn_send_block(struct vconn *, struct buffer *); +int vconn_recv_block(struct vconn *, struct buffer **); enum vconn_wait_type { WAIT_CONNECT, @@ -74,11 +76,13 @@ void vconn_recv_wait(struct vconn *); void vconn_send_wait(struct vconn *); struct buffer *make_add_simple_flow(const struct flow *, - uint32_t buffer_id, uint16_t out_port); + uint32_t buffer_id, uint16_t out_port, + uint16_t max_idle); struct buffer *make_buffered_packet_out(uint32_t buffer_id, uint16_t in_port, uint16_t out_port); struct buffer *make_unbuffered_packet_out(const struct buffer *packet, uint16_t in_port, uint16_t out_port); +struct buffer *make_echo_reply(const struct ofp_header *rq); /* Provider interface. */