datapath-windows/ovsext/Netlink/NetlinkBuf.c
/*
 * --------------------------------------------------------------------------
 * NlBufCopyAtTail --
 *
 *    Copies the data to the tail end of the buffer.
 * --------------------------------------------------------------------------
 */


Copies the data to the tail end of the buffer.
Copies the data to the tail end of the buffer .
BOOLEAN
NlBufCopyAtTail(PNL_BUFFER nlBuf, PCHAR data, UINT32 len)
{
    BOOLEAN ret = TRUE;
    ASSERT(nlBuf);
    if (!NL_BUF_CAN_ADD(nlBuf, len, NL_BUF_TAIL_OFFSET(nlBuf))) {
        ret = FALSE;
        goto done;
    }
    _NlBufCopyAtTailUnsafe(nlBuf, data, len);
done:
    return ret;
}
BOOLEAN NlBufCopyAtTail ( PNL_BUFFER nlBuf , PCHAR data , UINT32 len ) { BOOLEAN ret = TRUE ; ASSERT ( nlBuf ) ; if ( ! NL_BUF_CAN_ADD ( nlBuf , len , NL_BUF_TAIL_OFFSET ( nlBuf ) ) ) { ret = FALSE ; goto done ; } _NlBufCopyAtTailUnsafe ( nlBuf , data , len ) ; done : return ret ; }
NlBufCopyAtTail
NlBufCopyAtTail
/* Check if we have enough space */