datapath-windows/ovsext/Netlink/Netlink.c
/*
 * ---------------------------------------------------------------------------
 * Adds an attribute to the head of buffer. It does
 * not copy the attribute payload.
 * Refer nl_msg_push_unspec_uninit for more details.
 * ---------------------------------------------------------------------------
 */
Adds an attribute to the head of buffer. It does
not copy the attribute payload.
Refer nl_msg_push_unspec_uninit for more details.
Adds an attribute to the head of buffer . It does not copy the attribute payload . Refer nl_msg_push_unspec_uninit for more details .
PCHAR
NlMsgPutHeadUnspecUninit(PNL_BUFFER buf, UINT16 type, UINT16 len)
{
    PCHAR ret = NULL;
    UINT16 totalLen = NLA_HDRLEN + len;
    PNL_ATTR nla = (PNL_ATTR)(NlMsgPutHeadUninit(buf, totalLen));
    if (!nla) {
        goto done;
    }
    ret = (PCHAR)(nla + 1);
    nla->nlaLen = totalLen;
    nla->nlaType = type;
done:
    return ret;
}
PCHAR NlMsgPutHeadUnspecUninit ( PNL_BUFFER buf , UINT16 type , UINT16 len ) { PCHAR ret = NULL ; UINT16 totalLen = NLA_HDRLEN + len ; PNL_ATTR nla = ( PNL_ATTR ) ( NlMsgPutHeadUninit ( buf , totalLen ) ) ; if ( ! nla ) { goto done ; } ret = ( PCHAR ) ( nla + 1 ) ; nla -> nlaLen = totalLen ; nla -> nlaType = type ; done : return ret ; }
Adds an attribute to the head of buffer.
Adds an attribute to the head of buffer .