mib.h
来自「gnu 的radius服务器很好用的」· C头文件 代码 · 共 62 行
H
62 行
/* This file is part of GNU Radius SNMP Library. Copyright (C) 2001 Free Software Foundation, Inc. Written by Sergey Poznyakoff This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */#define MIB_ERROR -1#define MIB_SUCCESS 0#define MIB_MATCH_EXACT 0#define MIB_MATCH_UPPER 1#define MIB_MATCH_PREV 2struct mib_node_t;enum mib_node_cmd { MIB_NODE_GET, MIB_NODE_SET, MIB_NODE_SET_TRY, MIB_NODE_COMPARE, MIB_NODE_NEXT, MIB_NODE_GET_SUBID, MIB_NODE_RESET};typedef int (*mib_fp)(enum mib_node_cmd, void *, subid_t, struct snmp_var **, int *);struct mib_node_t { struct mib_node_t *up, *down, *next; subid_t subid; int index; mib_fp handler; void *closure;};#define SUBID_X (subid_t)-1int mib_lookup(struct mib_node_t *node, oid_t oid, int len, struct mib_node_t **return_node);int mib_insert_node(struct mib_node_t **root_node, oid_t oid, int len, struct mib_node_t **return_node);int mib_insert(struct mib_node_t **node, oid_t oid, struct mib_node_t **return_node);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?