maxmib.c
来自「嵌入式RMON,RMON为Remote monitor的缩写,基于SNMP为网络」· C语言 代码 · 共 43 行
C
43 行
/* 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 + =
减小字号Ctrl + -
显示快捷键?