1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148
|
/*
* Copyright (c) 2006 SBE, Inc.
* Copyright (c) 2009-2011 Linux-iSCSI.org
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
/*
* ipsAuthMibModule Definitions
*/
#ifndef IPSAUTHMIB_H
#define IPSAUTHMIB_H
#define AUTH_INST_INDEX 1
#define AUTH_ID_NAME_INDEX 1
/*
* Instance Attributes Table
*/
void initialize_table_ipsAuthInstAttr(void);
Netsnmp_Node_Handler ipsAuthInstAttr_handler;
Netsnmp_First_Data_Point ipsAuthInstAttr_get_first_data_point;
Netsnmp_Next_Data_Point ipsAuthInstAttr_get_next_data_point;
int ipsAuthInstAttr_load(netsnmp_cache *cache, void *vmagic);
/* column number definitions */
#define COLUMN_IPSAUTHINSTINDEX 1
#define COLUMN_IPSAUTHINSTDESCR 2
#define COLUMN_IPSAUTHINSTSTORAGETYPE 3
/* Data structure for row entry */
struct ipsAuthInstAttr_entry {
u_long ipsAuthInstIndex;
char ipsAuthInstDescr[AUTH_MAX_NAME_LEN];
long ipsAuthInstStorageType;
struct ipsAuthInstAttr_entry *next;
};
/*
* User Identity Attributes Table
*/
void initialize_table_ipsAuthIdentAttr(void);
Netsnmp_Node_Handler ipsAuthIdentAttr_handler;
Netsnmp_First_Data_Point ipsAuthIdentAttr_get_first_data_point;
Netsnmp_Next_Data_Point ipsAuthIdentAttr_get_next_data_point;
int ipsAuthIdentAttr_load(netsnmp_cache *cache, void *vmagic);
/* column number definitions */
#define COLUMN_IPSAUTHIDENTINDEX 1
#define COLUMN_IPSAUTHIDENTDESCRIPTION 2
#define COLUMN_IPSAUTHIDENTROWSTATUS 3
#define COLUMN_IPSAUTHIDENTSTORAGETYPE 4
/* Data structure for row entry */
struct ipsAuthIdentAttr_entry {
u_long ipsAuthInstIndex;
u_long ipsAuthIdentIndex;
char ipsAuthIdentDescription[AUTH_MAX_NAME_LEN];
long ipsAuthIdentRowStatus;
long ipsAuthIdentStorageType;
struct ipsAuthIdentAttr_entry *next;
};
/*
* User Initiator Name Attributes Table
*/
void initialize_table_ipsAuthIdentNameAttr(void);
Netsnmp_Node_Handler ipsAuthIdentNameAttr_handler;
Netsnmp_First_Data_Point ipsAuthIdentNameAttr_get_first_data_point;
Netsnmp_Next_Data_Point ipsAuthIdentNameAttr_get_next_data_point;
int ipsAuthIdentNameAttr_load(netsnmp_cache *cache, void *vmagic);
/* column number definitions */
#define COLUMN_IPSAUTHIDENTNAMEINDEX 1
#define COLUMN_IPSAUTHIDENTNAME 2
#define COLUMN_IPSAUTHIDENTNAMEROWSTATUS 3
#define COLUMN_IPSAUTHIDENTNAMESTORAGETYPE 4
/* Data structure for row entry */
struct ipsAuthIdentNameAttr_entry {
u_long ipsAuthInstIndex;
u_long ipsAuthIdentIndex;
u_long ipsAuthIdentNameIndex;
char ipsAuthIdentName[AUTH_MAX_NAME_LEN];
long ipsAuthIdentNameRowStatus;
long ipsAuthIdentNameStorageType;
struct ipsAuthIdentNameAttr_entry *next;
};
/*
* Credential Attributes Table
*/
void initialize_table_ipsAuthCredAttr(void);
Netsnmp_Node_Handler ipsAuthCredAttr_handler;
Netsnmp_First_Data_Point ipsAuthCredAttr_get_first_data_point;
Netsnmp_Next_Data_Point ipsAuthCredAttr_get_next_data_point;
int ipsAuthCredAttr_load(netsnmp_cache *cache, void *vmagic);
void ipsAuthCredAttr_free(netsnmp_cache *cache, void *vmagic);
/* column number definitions */
#define COLUMN_IPSAUTHCREDINDEX 1
#define COLUMN_IPSAUTHCREDAUTHMETHOD 2
#define COLUMN_IPSAUTHCREDROWSTATUS 3
#define COLUMN_IPSAUTHCREDSTORAGETYPE 4
/* Data structure for row entry */
struct ipsAuthCredAttr_entry {
u_long ipsAuthInstIndex;
u_long ipsAuthIdentIndex;
u_long ipsAuthCredIndex;
oid ipsAuthCredAuthMethod[MAX_OID_LEN];
int ipsAuthCredAuthMethod_len;
long ipsAuthCredRowStatus;
long ipsAuthCredStorageType;
struct ipsAuthCredAttr_entry *next;
};
/*
* Credential Chap-Specific Attributes Table
*/
void initialize_table_ipsAuthCredChapAttr(void);
Netsnmp_Node_Handler ipsAuthCredChapAttr_handler;
Netsnmp_First_Data_Point ipsAuthCredChapAttr_get_first_data_point;
Netsnmp_Next_Data_Point ipsAuthCredChapAttr_get_next_data_point;
int ipsAuthCredChapAttr_load(netsnmp_cache *cache, void *vmagic);
void ipsAuthCredChapAttr_free(netsnmp_cache *cache, void *vmagic);
/* column number definitions */
#define COLUMN_IPSAUTHCREDCHAPUSERNAME 1
#define COLUMN_IPSAUTHCREDCHAPROWSTATUS 2
#define COLUMN_IPSAUTHCREDCHAPSTORAGETYPE 3
/* Data structure for row entry */
struct ipsAuthCredChapAttr_entry {
u_long ipsAuthInstIndex;
u_long ipsAuthIdentIndex;
u_long ipsAuthCredIndex;
char ipsAuthCredChapUserName[AUTH_MAX_NAME_LEN];
long ipsAuthCredChapRowStatus;
long ipsAuthCredChapStorageType;
struct ipsAuthCredChapAttr_entry *next;
};
void ipsDummy_free(netsnmp_cache *cache, void *vmagic);
#endif /* IPSAUTHMIB_H */
|