datapath-windows/ovsext/Netlink/Netlink.c
/*
 * ---------------------------------------------------------------------------
 * Default minimum payload size for each type of attribute.
 * ---------------------------------------------------------------------------
 */
Default minimum payload size for each type of attribute.
Default minimum payload size for each type of attribute .
UINT32
NlAttrMinLen(NL_ATTR_TYPE type)
{
    switch (type) {
    case NL_A_NO_ATTR: return 0;
    case NL_A_UNSPEC: return 0;
    case NL_A_U8: return 1;
    case NL_A_U16: return 2;
    case NL_A_U32: return 4;
    case NL_A_U64: return 8;
    case NL_A_STRING: return 1;
    case NL_A_FLAG: return 0;
    case NL_A_NESTED: return 0;
    case N_NL_ATTR_TYPES:
    default:
    OVS_LOG_WARN("Unsupprted attribute type: %d", type);
    ASSERT(0);
    }
    return 0;
}
UINT32 NlAttrMinLen ( NL_ATTR_TYPE type ) { switch ( type ) { case NL_A_NO_ATTR : return 0 ; case NL_A_UNSPEC : return 0 ; case NL_A_U8 : return 1 ; case NL_A_U16 : return 2 ; case NL_A_U32 : return 4 ; case NL_A_U64 : return 8 ; case NL_A_STRING : return 1 ; case NL_A_FLAG : return 0 ; case NL_A_NESTED : return 0 ; case N_NL_ATTR_TYPES : default : OVS_LOG_WARN ( " " , type ) ; ASSERT ( 0 ) ; } return 0 ; }
Default minimum payload size for each type of attribute.
Default minimum payload size for each type of attribute .
/* To keep compiler happy */