📄 maxmib.c
字号:
/* Beholder RMON ethernet network monitor,Copyright (C) 1993 DNPAP group *//* See file COPYING 'GNU General Public Licence' for copyright details */#define LIBRARY#include <stdio.h>#include <stdlib.h>#include <malloc.h>#include <dnpap.h>#include <mibsup.h>#include <maxmem.h>#include "maxmib.h"EXPORT LONG maxmemChunk;EXPORT LONG maxmemMax;EXPORT LONG maxmemUsed;EXPORT WORD memoryMax (SNMP_OBJECT *Obj, WORD IdLen){ if (MibSimple(Obj, IdLen) == FALSE) return (SNMP_NOSUCHNAME); Obj->Syntax.LngInt = maxmemMax; return (SNMP_NOERROR);}EXPORT WORD memoryChunk (SNMP_OBJECT *Obj, WORD IdLen){ if (MibSimple(Obj, IdLen) == FALSE) return (SNMP_NOSUCHNAME); Obj->Syntax.LngInt = maxmemChunk; return (SNMP_NOERROR);}EXPORT WORD memoryUsed (SNMP_OBJECT *Obj, WORD IdLen){ if (MibSimple(Obj, IdLen) == FALSE) return (SNMP_NOSUCHNAME); Obj->Syntax.LngInt = maxmemUsed; return (SNMP_NOERROR);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -