⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 maxmib.c

📁 嵌入式RMON,RMON为Remote monitor的缩写,基于SNMP为网络提供主动监控及错误告警,智能交换路由必备协议
💻 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 + -