~ubuntu-branches/debian/lenny/net-snmp/lenny

« back to all changes in this revision

Viewing changes to agent/mibgroup/ip-mib/inetNetToMediaTable/inetNetToMediaTable.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2007-05-10 22:20:23 UTC
  • Revision ID: james.westby@ubuntu.com-20070510222023-3fr07xb9i17xvq32
Tags: upstream-5.3.1
ImportĀ upstreamĀ versionĀ 5.3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * Note: this file originally auto-generated by mib2c using
3
 
 *       version : 1.32 $ of : mfd-top.m2c,v $
 
3
 *       version : 1.48 $ of : mfd-top.m2c,v $
4
4
 *
5
 
 * $Id: inetNetToMediaTable.h,v 1.6.2.1 2006/01/25 16:28:10 dts12 Exp $
 
5
 * $Id: inetNetToMediaTable.h,v 1.7.2.1 2006/01/25 16:26:39 dts12 Exp $
6
6
 */
7
7
#ifndef INETNETTOMEDIATABLE_H
8
8
#define INETNETTOMEDIATABLE_H
12
12
#endif
13
13
 
14
14
 
15
 
/** @defgroup misc misc: Miscellaneous routines
 
15
/** @addtogroup misc misc: Miscellaneous routines
16
16
 *
17
17
 * @{
18
18
 */
20
20
#include <net-snmp/data_access/arp.h>
21
21
 
22
22
    /*
23
 
     * OID, column number and enum definions for  
 
23
     * other required module components 
 
24
     */
 
25
    /* *INDENT-OFF*  */
 
26
config_require(ip-mib/data_access/arp)
 
27
config_require(ip-mib/inetNetToMediaTable/inetNetToMediaTable_interface)
 
28
config_require(ip-mib/inetNetToMediaTable/inetNetToMediaTable_data_access)
 
29
    /* *INDENT-ON*  */
 
30
 
 
31
    /*
 
32
     * OID, column number and enum definions for inetNetToMediaTable 
24
33
     */
25
34
#include "inetNetToMediaTable_constants.h"
26
35
 
29
38
     * function declarations
30
39
     */
31
40
    void            init_inetNetToMediaTable(void);
 
41
    void            shutdown_inetNetToMediaTable(void);
32
42
 
33
43
    /*
34
44
     *********************************************************************
42
52
 **********************************************************************
43
53
 **********************************************************************/
44
54
    /*
45
 
     * inetNetToMediaTable is subid 35 of ip.
 
55
     * IP-MIB::inetNetToMediaTable is subid 35 of ip.
46
56
     * Its status is Current.
47
57
     * OID: .1.3.6.1.2.1.4.35, length: 8
48
58
     */
57
67
    /*
58
68
     * TODO:101:o: |-> Review inetNetToMediaTable registration context.
59
69
     */
60
 
    typedef netsnmp_data_list *inetNetToMediaTable_registration_ptr;
 
70
    typedef netsnmp_data_list inetNetToMediaTable_registration;
61
71
 
62
72
/**********************************************************************/
63
73
    /*
134
144
 
135
145
 
136
146
        /*
137
 
         * flags per row. Currently, the first 8 bits are reserverd
 
147
         * flags per row. Currently, the first (lower) 8 bits are reserved
138
148
         * for the user. See mfd.h for other flags.
139
149
         */
140
150
        u_int           rowreq_flags;
141
151
 
142
152
        /*
143
 
         * implementor's context pointer (provided during registration)
144
 
         */
145
 
        inetNetToMediaTable_registration_ptr inetNetToMediaTable_reg;
146
 
 
147
 
        /*
148
153
         * TODO:131:o: |   |-> Add useful data to inetNetToMediaTable rowreq context.
149
154
         */
150
155
        int             inetNetToMediaRowStatus,
166
171
     * function prototypes
167
172
     */
168
173
    int
169
 
        inetNetToMediaTable_pre_request
170
 
        (inetNetToMediaTable_registration_ptr user_context);
171
 
    int
172
 
        inetNetToMediaTable_post_request
173
 
        (inetNetToMediaTable_registration_ptr user_context);
 
174
        inetNetToMediaTable_pre_request(inetNetToMediaTable_registration *
 
175
                                        user_context);
 
176
    int
 
177
        inetNetToMediaTable_post_request(inetNetToMediaTable_registration *
 
178
                                         user_context, int rc);
 
179
 
 
180
    int
 
181
        inetNetToMediaTable_rowreq_ctx_init(inetNetToMediaTable_rowreq_ctx
 
182
                                            * rowreq_ctx,
 
183
                                            void *user_init_ctx);
 
184
    void
 
185
        inetNetToMediaTable_rowreq_ctx_cleanup
 
186
        (inetNetToMediaTable_rowreq_ctx * rowreq_ctx);
174
187
 
175
188
    inetNetToMediaTable_data *inetNetToMediaTable_allocate_data(void);
176
189
    void
183
196
        inetNetToMediaTable_commit(inetNetToMediaTable_rowreq_ctx *
184
197
                                   rowreq_ctx);
185
198
 
 
199
        inetNetToMediaTable_rowreq_ctx
 
200
        * inetNetToMediaTable_row_find_by_mib_index
 
201
        (inetNetToMediaTable_mib_index * mib_idx);
 
202
 
186
203
    extern oid      inetNetToMediaTable_oid[];
187
204
    extern int      inetNetToMediaTable_oid_size;
188
205
 
206
223
 **********************************************************************
207
224
 **********************************************************************/
208
225
    /*
209
 
     * inetNetToMediaTable is subid 35 of ip.
 
226
     * IP-MIB::inetNetToMediaTable is subid 35 of ip.
210
227
     * Its status is Current.
211
228
     * OID: .1.3.6.1.2.1.4.35, length: 8
212
229
     */
217
234
    int
218
235
        inetNetToMediaPhysAddress_get(inetNetToMediaTable_rowreq_ctx *
219
236
                                      rowreq_ctx, char
220
 
                                      **inetNetToMediaPhysAddress_val_ptr_ptr, size_t
221
 
                                      *inetNetToMediaPhysAddress_val_ptr_len_ptr);
 
237
                                      **inetNetToMediaPhysAddress_val_ptr_ptr,
 
238
                                      size_t *
 
239
                                      inetNetToMediaPhysAddress_val_ptr_len_ptr);
222
240
    int
223
241
        inetNetToMediaLastUpdated_get(inetNetToMediaTable_rowreq_ctx *
224
242
                                      rowreq_ctx,
253
271
                                        u_long
254
272
                                        inetNetToMediaNetAddressType_val,
255
273
                                        char
256
 
                                        *inetNetToMediaNetAddress_val_ptr, size_t
 
274
                                        *inetNetToMediaNetAddress_val_ptr,
 
275
                                        size_t
257
276
                                        inetNetToMediaNetAddress_val_ptr_len);
258
277
 
259
278
 
275
294
 **********************************************************************
276
295
 **********************************************************************/
277
296
    /*
278
 
     * inetNetToMediaTable is subid 35 of ip.
 
297
     * IP-MIB::inetNetToMediaTable is subid 35 of ip.
279
298
     * Its status is Current.
280
299
     * OID: .1.3.6.1.2.1.4.35, length: 8
281
300
     */
282
 
    int             inetNetToMediaIfIndex_check_index(inetNetToMediaTable_rowreq_ctx * rowreq_ctx);     /* internal */
283
 
    int             inetNetToMediaNetAddressType_check_index(inetNetToMediaTable_rowreq_ctx * rowreq_ctx);      /* internal */
284
 
    int             inetNetToMediaNetAddress_check_index(inetNetToMediaTable_rowreq_ctx * rowreq_ctx);  /* internal */
285
 
 
286
 
 
287
 
    int
288
 
        inetNetToMediaTable_validate_index
289
 
        (inetNetToMediaTable_registration_ptr inetNetToMediaTable_reg,
290
 
         inetNetToMediaTable_rowreq_ctx * rowreq_ctx);
 
301
 
 
302
 
291
303
    int
292
304
        inetNetToMediaTable_undo_setup(inetNetToMediaTable_rowreq_ctx *
293
305
                                       rowreq_ctx);
294
306
    int
295
307
        inetNetToMediaTable_undo_cleanup(inetNetToMediaTable_rowreq_ctx *
296
308
                                         rowreq_ctx);
 
309
    int             inetNetToMediaTable_undo(inetNetToMediaTable_rowreq_ctx
 
310
                                             * rowreq_ctx);
297
311
    int
298
312
        inetNetToMediaTable_commit(inetNetToMediaTable_rowreq_ctx *
299
313
                                   rowreq_ctx);
313
327
    int
314
328
        inetNetToMediaPhysAddress_set(inetNetToMediaTable_rowreq_ctx *
315
329
                                      rowreq_ctx, char
316
 
                                      *inetNetToMediaPhysAddress_val_ptr, size_t
 
330
                                      *inetNetToMediaPhysAddress_val_ptr,
 
331
                                      size_t
317
332
                                      inetNetToMediaPhysAddress_val_ptr_len);
318
333
    int
319
334
        inetNetToMediaPhysAddress_undo(inetNetToMediaTable_rowreq_ctx *
371
386
        inetNetToMediaRowStatus_undo_setup(inetNetToMediaTable_rowreq_ctx *
372
387
                                           rowreq_ctx);
373
388
    int
374
 
        inetNetToMediaRowStatus_set(inetNetToMediaTable_rowreq_ctx *
375
 
                                    rowreq_ctx,
376
 
                                    u_long inetNetToMediaRowStatus_val);
377
 
    int
378
389
        inetNetToMediaRowStatus_undo(inetNetToMediaTable_rowreq_ctx *
379
390
                                     rowreq_ctx);
380
391
 
398
409
}
399
410
#endif
400
411
#endif                          /* INETNETTOMEDIATABLE_H */
 
412
/**  @} */
 
413