datapath-windows/ovsext/Flow.c
/*
 *----------------------------------------------------------------------------
 *  _MapFlowActionToNlAction --
 *    Maps flow actions to OVS_FLOW_ATTR_ACTION attribute.
 *----------------------------------------------------------------------------
 */
_MapFlowActionToNlAction
Maps flow actions to OVS_FLOW_ATTR_ACTION attribute.
_MapFlowActionToNlAction Maps flow actions to OVS_FLOW_ATTR_ACTION attribute .
static NTSTATUS
_MapFlowActionToNlAction(PNL_BUFFER nlBuf, uint32_t actionsLen,
                         PNL_ATTR actions)
{
    NTSTATUS rc = STATUS_SUCCESS;
    UINT32 offset = 0;
    offset = NlMsgStartNested(nlBuf, OVS_FLOW_ATTR_ACTIONS);
    if (!offset) {
        rc = STATUS_INVALID_BUFFER_SIZE;
        goto error_nested_start;
    }
    if (!NlBufCopyAtTail(nlBuf, (PCHAR)actions, actionsLen)) {
        rc = STATUS_INVALID_BUFFER_SIZE;
        goto done;
    }
done:
    NlMsgEndNested(nlBuf, offset);
error_nested_start:
    return rc;
}
static NTSTATUS _MapFlowActionToNlAction ( PNL_BUFFER nlBuf , uint32_t actionsLen , PNL_ATTR actions ) { NTSTATUS rc = STATUS_SUCCESS ; UINT32 offset = 0 ; offset = NlMsgStartNested ( nlBuf , OVS_FLOW_ATTR_ACTIONS ) ; if ( ! offset ) { rc = STATUS_INVALID_BUFFER_SIZE ; goto error_nested_start ; } if ( ! NlBufCopyAtTail ( nlBuf , ( PCHAR ) actions , actionsLen ) ) { rc = STATUS_INVALID_BUFFER_SIZE ; goto done ; } done : NlMsgEndNested ( nlBuf , offset ) ; error_nested_start : return rc ; }
_MapFlowActionToNlAction
    Maps flow actions to OVS_FLOW_ATTR_ACTION attribute.
_MapFlowActionToNlAction Maps flow actions to OVS_FLOW_ATTR_ACTION attribute .
/* Starting the nested attribute failed. */ /* Adding a nested attribute failed. */