📄 iftable.h
字号:
* TODO:131:o: | |-> Add useful data to ifTable rowreq context. */ char known_missing; /* * storage for future expansion */ netsnmp_data_list *ifTable_data_list; } ifTable_rowreq_ctx; typedef struct ifTable_ref_rowreq_ctx_s { ifTable_rowreq_ctx *rowreq_ctx; } ifTable_ref_rowreq_ctx; /* ********************************************************************* * function prototypes */ int ifTable_pre_request(ifTable_registration_ptr user_context); int ifTable_post_request(ifTable_registration_ptr user_context); int ifTable_init_rowreq_ctx(ifTable_rowreq_ctx * rowreq_ctx); void ifTable_cleanup_rowreq_ctx(ifTable_rowreq_ctx * rowreq_ctx); int ifTable_check_dependencies(ifTable_rowreq_ctx * rowreq_ctx); int ifTable_commit(ifTable_rowreq_ctx * rowreq_ctx); extern oid ifTable_oid[]; extern int ifTable_oid_size;#include "ifTable_interface.h"#include "ifTable_data_access.h" /* ********************************************************************* * GET function declarations */ /* ********************************************************************* * GET Table declarations *//********************************************************************** ********************************************************************** *** *** Table ifTable *** ********************************************************************** **********************************************************************/ /* * ifTable is subid 2 of interfaces. * Its status is Current. * OID: .1.3.6.1.2.1.2.2, length: 8 */ /* * indexes */ int ifDescr_get(ifTable_rowreq_ctx * rowreq_ctx, char **ifDescr_val_ptr_ptr, size_t *ifDescr_val_ptr_len_ptr); int ifType_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifType_val_ptr); int ifMtu_get(ifTable_rowreq_ctx * rowreq_ctx, long *ifMtu_val_ptr); int ifSpeed_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifSpeed_val_ptr); int ifPhysAddress_get(ifTable_rowreq_ctx * rowreq_ctx, char **ifPhysAddress_val_ptr_ptr, size_t *ifPhysAddress_val_ptr_len_ptr); int ifAdminStatus_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifAdminStatus_val_ptr); int ifOperStatus_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOperStatus_val_ptr); int ifLastChange_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifLastChange_val_ptr); int ifInOctets_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifInOctets_val_ptr); int ifInUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifInUcastPkts_val_ptr); int ifInNUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifInNUcastPkts_val_ptr); int ifInDiscards_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifInDiscards_val_ptr); int ifInErrors_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifInErrors_val_ptr); int ifInUnknownProtos_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifInUnknownProtos_val_ptr); int ifOutOctets_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutOctets_val_ptr); int ifOutUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutUcastPkts_val_ptr); int ifOutNUcastPkts_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutNUcastPkts_val_ptr); int ifOutDiscards_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutDiscards_val_ptr); int ifOutErrors_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutErrors_val_ptr); int ifOutQLen_get(ifTable_rowreq_ctx * rowreq_ctx, u_long * ifOutQLen_val_ptr); int ifSpecific_get(ifTable_rowreq_ctx * rowreq_ctx, oid ** ifSpecific_val_ptr_ptr, size_t *ifSpecific_val_ptr_len_ptr); int ifTable_indexes_set_tbl_idx(ifTable_mib_index * tbl_idx, long ifIndex_val); int ifTable_indexes_set(ifTable_rowreq_ctx * rowreq_ctx, long ifIndex_val); /* ********************************************************************* * SET function declarations */ /* ********************************************************************* * SET Table declarations *//********************************************************************** ********************************************************************** *** *** Table ifTable *** ********************************************************************** **********************************************************************/ /* * ifTable is subid 2 of interfaces. * Its status is Current. * OID: .1.3.6.1.2.1.2.2, length: 8 */ int ifIndex_check_index(ifTable_rowreq_ctx * rowreq_ctx); /* internal */ int ifTable_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifTable_undo_cleanup(ifTable_rowreq_ctx * rowreq_ctx); int ifTable_commit(ifTable_rowreq_ctx * rowreq_ctx); int ifTable_undo_commit(ifTable_rowreq_ctx * rowreq_ctx); int ifDescr_check_value(ifTable_rowreq_ctx * rowreq_ctx, char *ifDescr_val_ptr, size_t ifDescr_val_ptr_len); int ifDescr_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifDescr_set(ifTable_rowreq_ctx * rowreq_ctx, char *ifDescr_val_ptr, size_t ifDescr_val_ptr_len); int ifDescr_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifType_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifType_val); int ifType_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifType_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifType_val); int ifType_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifMtu_check_value(ifTable_rowreq_ctx * rowreq_ctx, long ifMtu_val); int ifMtu_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifMtu_set(ifTable_rowreq_ctx * rowreq_ctx, long ifMtu_val); int ifMtu_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifSpeed_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifSpeed_val); int ifSpeed_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifSpeed_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifSpeed_val); int ifSpeed_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifPhysAddress_check_value(ifTable_rowreq_ctx * rowreq_ctx, char *ifPhysAddress_val_ptr, size_t ifPhysAddress_val_ptr_len); int ifPhysAddress_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifPhysAddress_set(ifTable_rowreq_ctx * rowreq_ctx, char *ifPhysAddress_val_ptr, size_t ifPhysAddress_val_ptr_len); int ifPhysAddress_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifAdminStatus_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifAdminStatus_val); int ifAdminStatus_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifAdminStatus_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifAdminStatus_val); int ifAdminStatus_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifOperStatus_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOperStatus_val); int ifOperStatus_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifOperStatus_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOperStatus_val); int ifOperStatus_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifLastChange_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifLastChange_val); int ifLastChange_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifLastChange_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifLastChange_val); int ifLastChange_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifInOctets_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInOctets_val); int ifInOctets_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifInOctets_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInOctets_val); int ifInOctets_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifInUcastPkts_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInUcastPkts_val); int ifInUcastPkts_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifInUcastPkts_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInUcastPkts_val); int ifInUcastPkts_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifInNUcastPkts_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInNUcastPkts_val); int ifInNUcastPkts_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifInNUcastPkts_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInNUcastPkts_val); int ifInNUcastPkts_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifInDiscards_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInDiscards_val); int ifInDiscards_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifInDiscards_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInDiscards_val); int ifInDiscards_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifInErrors_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInErrors_val); int ifInErrors_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifInErrors_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInErrors_val); int ifInErrors_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifInUnknownProtos_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInUnknownProtos_val); int ifInUnknownProtos_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifInUnknownProtos_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifInUnknownProtos_val); int ifInUnknownProtos_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifOutOctets_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutOctets_val); int ifOutOctets_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifOutOctets_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutOctets_val); int ifOutOctets_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifOutUcastPkts_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutUcastPkts_val); int ifOutUcastPkts_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifOutUcastPkts_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutUcastPkts_val); int ifOutUcastPkts_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifOutNUcastPkts_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutNUcastPkts_val); int ifOutNUcastPkts_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifOutNUcastPkts_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutNUcastPkts_val); int ifOutNUcastPkts_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifOutDiscards_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutDiscards_val); int ifOutDiscards_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifOutDiscards_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutDiscards_val); int ifOutDiscards_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifOutErrors_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutErrors_val); int ifOutErrors_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifOutErrors_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutErrors_val); int ifOutErrors_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifOutQLen_check_value(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutQLen_val); int ifOutQLen_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifOutQLen_set(ifTable_rowreq_ctx * rowreq_ctx, u_long ifOutQLen_val); int ifOutQLen_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifSpecific_check_value(ifTable_rowreq_ctx * rowreq_ctx, oid * ifSpecific_val_ptr, size_t ifSpecific_val_ptr_len); int ifSpecific_undo_setup(ifTable_rowreq_ctx * rowreq_ctx); int ifSpecific_set(ifTable_rowreq_ctx * rowreq_ctx, oid * ifSpecific_val_ptr, size_t ifSpecific_val_ptr_len); int ifSpecific_undo(ifTable_rowreq_ctx * rowreq_ctx); int ifTable_check_dependencies(ifTable_rowreq_ctx * ctx); /* * DUMMY markers, ignore * * TODO:099:x: ************************************************************* * TODO:199:x: ************************************************************* * TODO:299:x: ************************************************************* * TODO:399:x: ************************************************************* * TODO:499:x: ************************************************************* */#ifdef __cplusplus}#endif#endif /* IFTABLE_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -