|
Server : LiteSpeed System : Linux srv104790275 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64 User : dewac4139 ( 1077) PHP Version : 8.0.30 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/snmp/mib2c-data/ |
Upload File : |
############################################################# -*- c -*-
## generic include for XXX. Do not use directly.
##
########################################################################
@if $m2c_mark_boundary == 1@
/** START code generated by generic-get-char.m2i */
@end@
########################################################################
##
## enums first
@if $m2c_node_skip_mapping == -1@
@ eval $m2c_node_skip_mapping = 1@
@end@
@if ($node.enums == 1) && ("$node.perltype" eq "BITS")@
/*
* TODO:242:o: update or replace BITS tests (get).
* If $node data is stored in SNMP BIT order, individual
* bit tests are redundant, and you can do a straight copy. If not, then
* update each if condition to test the correct bit.
*
* NOTE WELL: setting bit '0' for:
* C 0x0000001
* SNMP 0x8000000
*
@ if $m2c_node_skip_mapping != 1@
* define correct bit to test for all INTERNAL_* defines in the
* ${context} enum or contants header file.
*/
$example_start
$m2c_node_lh = 0;
@ foreach $e $v enum@
@ include m2c_setup_enum.m2i@
if ($m2c_ctx_rh & INTERNAL_$context.uc_$m2c_iname) {
$m2c_node_lh |= $m2c_ename;
}
$m2c_node_lh = htonl( $m2c_node_lh );
@ end@ # for each
$example_end
@ else@
* assuming generated code keeps $node BITS in SNMP order.
*/
$m2c_node_lh = htonl( @m2c_ctx_rh@ );
@ end@
@end@
##
########################################################################
@if $m2c_mark_boundary == 1@
/** END code generated by generic-get-char.m2i */
@end@