+ struct dpif_linux_flow flow;
+ struct ofpbuf nlmsg;
+
+ /* Check whether there's a flow remaining in the buffer that includes
+ * actions. (If it does not include actions, then we could end up
+ * destroying keys previously returned trying to retrieve its actions
+ * fails.) */
+ return (!nl_dump_peek(&nlmsg, &state->buffer)
+ || dpif_linux_flow_from_ofpbuf(&flow, &nlmsg)
+ || !flow.actions);