datapath-windows/ovsext/Netlink/Netlink.c
/*
 * ---------------------------------------------------------------------------
 * Returns an attribute of type 'type' from a series of
 * attributes.
 * ---------------------------------------------------------------------------
 */
Returns an attribute of type 'type' from a series of
attributes.
Returns an attribute of type ' type ' from a series of attributes .
const PNL_ATTR
NlAttrFind__(const PNL_ATTR attrs, UINT32 size, UINT16 type)
{
    PNL_ATTR iter = NULL;
    PNL_ATTR ret = NULL;
    INT left;
    NL_ATTR_FOR_EACH (iter, left, attrs, size) {
        if (NlAttrType(iter) == type) {
            ret = iter;
            goto done;
        }
    }
done:
    return ret;
}
const PNL_ATTR NlAttrFind__ ( const PNL_ATTR attrs , UINT32 size , UINT16 type ) { PNL_ATTR iter = NULL ; PNL_ATTR ret = NULL ; INT left ; NL_ATTR_FOR_EACH ( iter , left , attrs , size ) { if ( NlAttrType ( iter ) == type ) { ret = iter ; goto done ; } } done : return ret ; }
Returns an attribute of type 'type' from a series of
 attributes.
Returns an attribute of type ' type ' from a series of attributes .