-/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
+/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
* message, and sends it to the OpenFlow local datapath numbered 'dp_idx' via
* 'sock'.
*
- * Returns 0 if successful, otherwise a positive errno value. If
- * 'wait' is true, then the send will wait until buffer space is ready;
- * otherwise, returns EAGAIN if the 'sock' send buffer is full.
+ * Returns 0 if successful, otherwise a positive errno value. Returns EAGAIN
+ * if the 'sock' send buffer is full.
*
* If the send is successful, then the kernel module will receive it, but there
* is no guarantee that any reply will not be dropped (see nl_sock_transact()
* for details).
*/
int
-dpif_send_openflow(struct dpif *dp, int dp_idx, struct ofpbuf *buffer,
- bool wait)
+dpif_send_openflow(struct dpif *dp, int dp_idx, struct ofpbuf *buffer)
{
struct ofp_header *oh;
unsigned int dump_flag;
-/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
+/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
/* OpenFlow. */
int dpif_recv_openflow(struct dpif *, int dp_idx, struct ofpbuf **, bool wait);
-int dpif_send_openflow(struct dpif *, int dp_idx, struct ofpbuf *, bool wait);
+int dpif_send_openflow(struct dpif *, int dp_idx, struct ofpbuf *);
/* Management functions. */
int dpif_add_dp(struct dpif *, int dp_idx, const char *dp_name);
-/* Copyright (c) 2008 The Board of Trustees of The Leland Stanford
+/* Copyright (c) 2008, 2009 The Board of Trustees of The Leland Stanford
* Junior University
*
* We are making the OpenFlow specification and associated documentation
netlink_send(struct vconn *vconn, struct ofpbuf *buffer)
{
struct netlink_vconn *netlink = netlink_vconn_cast(vconn);
- int retval = dpif_send_openflow(&netlink->dp, netlink->dp_idx,
- buffer, false);
+ int retval = dpif_send_openflow(&netlink->dp, netlink->dp_idx, buffer);
if (!retval) {
ofpbuf_delete(buffer);
}