Debian Codegraph @

agent/mibgroup/ip-mib/ipv6ScopeZoneIndexTable/ipv6ScopeZoneIndexTable.c

raw
1 /*
2 * Note: this file originally auto-generated by mib2c using
3 * version : 14170 $ of $
4 *
5 * $Id:ipv6ScopeZoneIndexTable.c 14170 2007-04-29 00:12:32Z varun_c$
6 */
7 /** \page MFD helper for ipv6ScopeZoneIndexTable
8 *
9 * \section intro Introduction
10 * Introductory text.
11 *
12 */
13 /*
14 * standard Net-SNMP includes
15 */
16 #include <net-snmp/net-snmp-config.h>
17 #include <net-snmp/net-snmp-includes.h>
18 #include <net-snmp/agent/net-snmp-agent-includes.h>
19
20 /*
21 * include our parent header
22 */
23 #include "ipv6ScopeZoneIndexTable.h"
24
25 #include <net-snmp/agent/mib_modules.h>
26
27 #include "ipv6ScopeZoneIndexTable_interface.h"
28
29 const oid ipv6ScopeZoneIndexTable_oid[] =
30 { IPV6SCOPEZONEINDEXTABLE_OID };
31 const int ipv6ScopeZoneIndexTable_oid_size =
32 OID_LENGTH(ipv6ScopeZoneIndexTable_oid);
33
34 ipv6ScopeZoneIndexTable_registration ipv6ScopeZoneIndexTable_user_context;
35 static ipv6ScopeZoneIndexTable_registration *ipv6ScopeZoneIndexTable_user_context_p;
36
37 void initialize_table_ipv6ScopeZoneIndexTable(void);
38 void shutdown_table_ipv6ScopeZoneIndexTable(void);
39
40
41 /**
42 * Initializes the ipv6ScopeZoneIndexTable module
43 */
44 void
45 init_ipv6ScopeZoneIndexTable(void)
46 {
47 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:init_ipv6ScopeZoneIndexTable", "called\n"));
48
49 /*
50 * TODO:300:o: Perform ipv6ScopeZoneIndexTable one-time module initialization.
51 */
52
53 /*
54 * here we initialize all the tables we're planning on supporting
55 */
56 if (should_init("ipv6ScopeZoneIndexTable"))
57 initialize_table_ipv6ScopeZoneIndexTable();
58
59 } /* init_ipv6ScopeZoneIndexTable */
60
61 /**
62 * Shut-down the ipv6ScopeZoneIndexTable module (agent is exiting)
63 */
64 void
65 shutdown_ipv6ScopeZoneIndexTable(void)
66 {
67 if (should_init("ipv6ScopeZoneIndexTable"))
68 shutdown_table_ipv6ScopeZoneIndexTable();
69
70 }
71
72 /**
73 * Initialize the table ipv6ScopeZoneIndexTable
74 * (Define its contents and how it's structured)
75 */
76 void
77 initialize_table_ipv6ScopeZoneIndexTable(void)
78 {
79 u_long flags;
80
81 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:initialize_table_ipv6ScopeZoneIndexTable", "called\n"));
82
83 /*
84 * TODO:301:o: Perform ipv6ScopeZoneIndexTable one-time table initialization.
85 */
86
87 /*
88 * TODO:302:o: |->Initialize ipv6ScopeZoneIndexTable user context
89 * if you'd like to pass in a pointer to some data for this
90 * table, allocate or set it up here.
91 */
92 /*
93 * a netsnmp_data_list is a simple way to store void pointers. A simple
94 * string token is used to add, find or remove pointers.
95 */
96 ipv6ScopeZoneIndexTable_user_context_p =
97 netsnmp_create_data_list("ipv6ScopeZoneIndexTable", NULL, NULL);
98
99 /*
100 * No support for any flags yet, but in the future you would
101 * set any flags here.
102 */
103 flags = 0;
104
105 /*
106 * call interface initialization code
107 */
108 _ipv6ScopeZoneIndexTable_initialize_interface
109 (ipv6ScopeZoneIndexTable_user_context_p, flags);
110 } /* initialize_table_ipv6ScopeZoneIndexTable */
111
112 /**
113 * Shutdown the table ipv6ScopeZoneIndexTable
114 */
115 void
116 shutdown_table_ipv6ScopeZoneIndexTable(void)
117 {
118 /*
119 * call interface shutdown code
120 */
121 _ipv6ScopeZoneIndexTable_shutdown_interface
122 (ipv6ScopeZoneIndexTable_user_context_p);
123 netsnmp_free_all_list_data(ipv6ScopeZoneIndexTable_user_context_p);
124 ipv6ScopeZoneIndexTable_user_context_p = NULL;
125 }
126
127 /**
128 * extra context initialization (eg default values)
129 *
130 * @param rowreq_ctx : row request context
131 * @param user_init_ctx : void pointer for user (parameter to rowreq_ctx_allocate)
132 *
133 * @retval MFD_SUCCESS : no errors
134 * @retval MFD_ERROR : error (context allocate will fail)
135 */
136 int
137 ipv6ScopeZoneIndexTable_rowreq_ctx_init(ipv6ScopeZoneIndexTable_rowreq_ctx
138 * rowreq_ctx, void *user_init_ctx)
139 {
140 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexTable_rowreq_ctx_init", "called\n"));
141
142 netsnmp_assert(NULL != rowreq_ctx);
143
144 /*
145 * TODO:210:o: |-> Perform extra ipv6ScopeZoneIndexTable rowreq initialization. (eg DEFVALS)
146 */
147 return MFD_SUCCESS;
148 } /* ipv6ScopeZoneIndexTable_rowreq_ctx_init */
149
150 /**
151 * extra context cleanup
152 *
153 */
154 void
155 ipv6ScopeZoneIndexTable_rowreq_ctx_cleanup
156 (ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx)
157 {
158 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexTable_rowreq_ctx_cleanup", "called\n"));
159
160 netsnmp_assert(NULL != rowreq_ctx);
161
162 /*
163 * TODO:211:o: |-> Perform extra ipv6ScopeZoneIndexTable rowreq cleanup.
164 */
165 netsnmp_access_scopezone_entry_free(rowreq_ctx->data);
166 rowreq_ctx->data = NULL;
167 } /* ipv6ScopeZoneIndexTable_rowreq_ctx_cleanup */
168
169 /**
170 * pre-request callback
171 *
172 *
173 * @retval MFD_SUCCESS : success.
174 * @retval MFD_ERROR : other error
175 */
176 int
177 ipv6ScopeZoneIndexTable_pre_request(ipv6ScopeZoneIndexTable_registration *
178 user_context)
179 {
180 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexTable_pre_request", "called\n"));
181
182 /*
183 * TODO:510:o: Perform ipv6ScopeZoneIndexTable pre-request actions.
184 */
185
186 return MFD_SUCCESS;
187 } /* ipv6ScopeZoneIndexTable_pre_request */
188
189 /**
190 * post-request callback
191 *
192 * Note:
193 * New rows have been inserted into the container, and
194 * deleted rows have been removed from the container and
195 * released.
196 *
197 * @param user_context
198 * @param rc : MFD_SUCCESS if all requests succeeded
199 *
200 * @retval MFD_SUCCESS : success.
201 * @retval MFD_ERROR : other error (ignored)
202 */
203 int
204 ipv6ScopeZoneIndexTable_post_request(ipv6ScopeZoneIndexTable_registration *
205 user_context, int rc)
206 {
207 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexTable_post_request", "called\n"));
208
209 /*
210 * TODO:511:o: Perform ipv6ScopeZoneIndexTable post-request actions.
211 */
212
213 return MFD_SUCCESS;
214 } /* ipv6ScopeZoneIndexTable_post_request */
215
216 /*
217 * ipv6ScopeZoneIndexTable_allocate_data
218 *
219 * Purpose: create new ipv6ScopeZoneIndexTable_data.
220 */
221 ipv6ScopeZoneIndexTable_data *
222 ipv6ScopeZoneIndexTable_allocate_data(void)
223 {
224 /*
225 * TODO:201:r: |-> allocate memory for the ipv6ScopeZoneIndexTable data context.
226 */
227 ipv6ScopeZoneIndexTable_data *rtn = netsnmp_access_scopezone_entry_create();
228
229 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexTable_allocate_data", "called\n"));
230
231 if (NULL == rtn) {
232 snmp_log(LOG_ERR, "unable to malloc memory for new "
233 "ipv6ScopeZoneIndexTable_data.\n");
234 }
235
236 return rtn;
237 } /* ipv6ScopeZoneIndexTable_allocate_data */
238
239 /*
240 * ipv6ScopeZoneIndexTable_release_data
241 *
242 * Purpose: release ipv6ScopeZoneIndexTable data.
243 */
244 void
245 ipv6ScopeZoneIndexTable_release_data(ipv6ScopeZoneIndexTable_data * data)
246 {
247 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexTable_release_data", "called\n"));
248
249 /*
250 * TODO:202:r: |-> release memory for the ipv6ScopeZoneIndexTable data context.
251 */
252 netsnmp_access_scopezone_entry_free(data);
253 } /* ipv6ScopeZoneIndexTable_release_data */
254
255 /** @defgroup data_get data_get: Routines to get data
256 *
257 * TODO:230:M: Implement ipv6ScopeZoneIndexTable get routines.
258 * TODO:240:M: Implement ipv6ScopeZoneIndexTable mapping routines (if any).
259 *
260 * These routine are used to get the value for individual objects. The
261 * row context is passed, along with a pointer to the memory where the
262 * value should be copied.
263 *
264 * @{
265 */
266 /**********************************************************************
267 **********************************************************************
268 ***
269 *** Table ipv6ScopeZoneIndexTable
270 ***
271 **********************************************************************
272 **********************************************************************/
273 /*
274 * IP-MIB::ipv6ScopeZoneIndexTable is subid 36 of ip.
275 * Its status is Current.
276 * OID: .1.3.6.1.2.1.4.36, length: 8
277 */
278
279 /*
280 * ---------------------------------------------------------------------
281 * * TODO:200:r: Implement ipv6ScopeZoneIndexTable data context functions.
282 */
283
284
285 /**
286 * set mib index(es)
287 *
288 * @param tbl_idx mib index structure
289 * @param ipv6ScopeZoneIndexIfIndex_val
290 *
291 * @retval MFD_SUCCESS : success.
292 * @retval MFD_ERROR : other error.
293 *
294 * @remark
295 * This convenience function is useful for setting all the MIB index
296 * components with a single function call. It is assume that the C values
297 * have already been mapped from their native/rawformat to the MIB format.
298 */
299 int
300 ipv6ScopeZoneIndexTable_indexes_set_tbl_idx
301 (ipv6ScopeZoneIndexTable_mib_index * tbl_idx,
302 long ipv6ScopeZoneIndexIfIndex_val)
303 {
304 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexTable_indexes_set_tbl_idx", "called\n"));
305
306 /*
307 * ipv6ScopeZoneIndexIfIndex(1)/InterfaceIndex/ASN_INTEGER/long(long)//l/a/w/e/R/d/H
308 */
309 tbl_idx->ipv6ScopeZoneIndexIfIndex = ipv6ScopeZoneIndexIfIndex_val;
310
311
312 return MFD_SUCCESS;
313 } /* ipv6ScopeZoneIndexTable_indexes_set_tbl_idx */
314
315 /**
316 * @internal
317 * set row context indexes
318 *
319 * @param reqreq_ctx the row context that needs updated indexes
320 *
321 * @retval MFD_SUCCESS : success.
322 * @retval MFD_ERROR : other error.
323 *
324 * @remark
325 * This function sets the mib indexs, then updates the oid indexs
326 * from the mib index.
327 */
328 int
329 ipv6ScopeZoneIndexTable_indexes_set(ipv6ScopeZoneIndexTable_rowreq_ctx *
330 rowreq_ctx,
331 long ipv6ScopeZoneIndexIfIndex_val)
332 {
333 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexTable_indexes_set", "called\n"));
334
335 if (MFD_SUCCESS !=
336 ipv6ScopeZoneIndexTable_indexes_set_tbl_idx(&rowreq_ctx->tbl_idx,
337 ipv6ScopeZoneIndexIfIndex_val))
338 return MFD_ERROR;
339
340 /*
341 * convert mib index to oid index
342 */
343 rowreq_ctx->oid_idx.len = sizeof(rowreq_ctx->oid_tmp) / sizeof(oid);
344 if (0 != ipv6ScopeZoneIndexTable_index_to_oid(&rowreq_ctx->oid_idx,
345 &rowreq_ctx->tbl_idx)) {
346 return MFD_ERROR;
347 }
348
349 return MFD_SUCCESS;
350 } /* ipv6ScopeZoneIndexTable_indexes_set */
351
352
353 /*---------------------------------------------------------------------
354 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndexLinkLocal
355 * ipv6ScopeZoneIndexLinkLocal is subid 2 of ipv6ScopeZoneIndexEntry.
356 * Its status is Current, and its access level is ReadOnly.
357 * OID: .1.3.6.1.2.1.4.36.1.2
358 * Description:
359 The zone index for the link-local scope on this interface.
360 *
361 * Attributes:
362 * accessible 1 isscalar 0 enums 0 hasdefval 0
363 * readable 1 iscolumn 1 ranges 0 hashint 1
364 * settable 0
365 * hint: d
366 *
367 *
368 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
369 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
370 */
371 /**
372 * Extract the current value of the ipv6ScopeZoneIndexLinkLocal data.
373 *
374 * Set a value using the data context for the row.
375 *
376 * @param rowreq_ctx
377 * Pointer to the row request context.
378 * @param ipv6ScopeZoneIndexLinkLocal_val_ptr
379 * Pointer to storage for a u_long variable
380 *
381 * @retval MFD_SUCCESS : success
382 * @retval MFD_SKIP : skip this node (no value for now)
383 * @retval MFD_ERROR : Any other error
384 */
385 int
386 ipv6ScopeZoneIndexLinkLocal_get(ipv6ScopeZoneIndexTable_rowreq_ctx *
387 rowreq_ctx,
388 u_long *
389 ipv6ScopeZoneIndexLinkLocal_val_ptr)
390 {
391 /** we should have a non-NULL pointer */
392 netsnmp_assert(NULL != ipv6ScopeZoneIndexLinkLocal_val_ptr);
393
394
395 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexLinkLocal_get", "called\n"));
396
397 netsnmp_assert(NULL != rowreq_ctx);
398
399 /*
400 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndexLinkLocal data.
401 * copy (* ipv6ScopeZoneIndexLinkLocal_val_ptr ) from rowreq_ctx->data
402 */
403 (*ipv6ScopeZoneIndexLinkLocal_val_ptr) =
404 rowreq_ctx->data->scopezone_linklocal;
405
406 return MFD_SUCCESS;
407 } /* ipv6ScopeZoneIndexLinkLocal_get */
408
409 /*---------------------------------------------------------------------
410 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndex3
411 * ipv6ScopeZoneIndex3 is subid 3 of ipv6ScopeZoneIndexEntry.
412 * Its status is Current, and its access level is ReadOnly.
413 * OID: .1.3.6.1.2.1.4.36.1.3
414 * Description:
415 The zone index for scope 3 on this interface.
416 *
417 * Attributes:
418 * accessible 1 isscalar 0 enums 0 hasdefval 0
419 * readable 1 iscolumn 1 ranges 0 hashint 1
420 * settable 0
421 * hint: d
422 *
423 *
424 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
425 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
426 */
427 /**
428 * Extract the current value of the ipv6ScopeZoneIndex3 data.
429 *
430 * Set a value using the data context for the row.
431 *
432 * @param rowreq_ctx
433 * Pointer to the row request context.
434 * @param ipv6ScopeZoneIndex3_val_ptr
435 * Pointer to storage for a u_long variable
436 *
437 * @retval MFD_SUCCESS : success
438 * @retval MFD_SKIP : skip this node (no value for now)
439 * @retval MFD_ERROR : Any other error
440 */
441 int
442 ipv6ScopeZoneIndex3_get(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx,
443 u_long * ipv6ScopeZoneIndex3_val_ptr)
444 {
445 /** we should have a non-NULL pointer */
446 netsnmp_assert(NULL != ipv6ScopeZoneIndex3_val_ptr);
447
448
449 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndex3_get",
450 "called\n"));
451
452 netsnmp_assert(NULL != rowreq_ctx);
453
454 /*
455 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndex3 data.
456 * copy (* ipv6ScopeZoneIndex3_val_ptr ) from rowreq_ctx->data
457 */
458 (*ipv6ScopeZoneIndex3_val_ptr) = 0;
459
460
461 return MFD_SUCCESS;
462 } /* ipv6ScopeZoneIndex3_get */
463
464 /*---------------------------------------------------------------------
465 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndexAdminLocal
466 * ipv6ScopeZoneIndexAdminLocal is subid 4 of ipv6ScopeZoneIndexEntry.
467 * Its status is Current, and its access level is ReadOnly.
468 * OID: .1.3.6.1.2.1.4.36.1.4
469 * Description:
470 The zone index for the admin-local scope on this interface.
471 *
472 * Attributes:
473 * accessible 1 isscalar 0 enums 0 hasdefval 0
474 * readable 1 iscolumn 1 ranges 0 hashint 1
475 * settable 0
476 * hint: d
477 *
478 *
479 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
480 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
481 */
482 /**
483 * Extract the current value of the ipv6ScopeZoneIndexAdminLocal data.
484 *
485 * Set a value using the data context for the row.
486 *
487 * @param rowreq_ctx
488 * Pointer to the row request context.
489 * @param ipv6ScopeZoneIndexAdminLocal_val_ptr
490 * Pointer to storage for a u_long variable
491 *
492 * @retval MFD_SUCCESS : success
493 * @retval MFD_SKIP : skip this node (no value for now)
494 * @retval MFD_ERROR : Any other error
495 */
496 int
497 ipv6ScopeZoneIndexAdminLocal_get(ipv6ScopeZoneIndexTable_rowreq_ctx *
498 rowreq_ctx,
499 u_long *
500 ipv6ScopeZoneIndexAdminLocal_val_ptr)
501 {
502 /** we should have a non-NULL pointer */
503 netsnmp_assert(NULL != ipv6ScopeZoneIndexAdminLocal_val_ptr);
504
505
506 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexAdminLocal_get", "called\n"));
507
508 netsnmp_assert(NULL != rowreq_ctx);
509
510 /*
511 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndexAdminLocal data.
512 * copy (* ipv6ScopeZoneIndexAdminLocal_val_ptr ) from rowreq_ctx->data
513 */
514 (*ipv6ScopeZoneIndexAdminLocal_val_ptr) = 0;
515
516 return MFD_SUCCESS;
517 } /* ipv6ScopeZoneIndexAdminLocal_get */
518
519 /*---------------------------------------------------------------------
520 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndexSiteLocal
521 * ipv6ScopeZoneIndexSiteLocal is subid 5 of ipv6ScopeZoneIndexEntry.
522 * Its status is Current, and its access level is ReadOnly.
523 * OID: .1.3.6.1.2.1.4.36.1.5
524 * Description:
525 The zone index for the site-local scope on this interface.
526 *
527 * Attributes:
528 * accessible 1 isscalar 0 enums 0 hasdefval 0
529 * readable 1 iscolumn 1 ranges 0 hashint 1
530 * settable 0
531 * hint: d
532 *
533 *
534 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
535 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
536 */
537 /**
538 * Extract the current value of the ipv6ScopeZoneIndexSiteLocal data.
539 *
540 * Set a value using the data context for the row.
541 *
542 * @param rowreq_ctx
543 * Pointer to the row request context.
544 * @param ipv6ScopeZoneIndexSiteLocal_val_ptr
545 * Pointer to storage for a u_long variable
546 *
547 * @retval MFD_SUCCESS : success
548 * @retval MFD_SKIP : skip this node (no value for now)
549 * @retval MFD_ERROR : Any other error
550 */
551 int
552 ipv6ScopeZoneIndexSiteLocal_get(ipv6ScopeZoneIndexTable_rowreq_ctx *
553 rowreq_ctx,
554 u_long *
555 ipv6ScopeZoneIndexSiteLocal_val_ptr)
556 {
557 /** we should have a non-NULL pointer */
558 netsnmp_assert(NULL != ipv6ScopeZoneIndexSiteLocal_val_ptr);
559
560
561 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexSiteLocal_get", "called\n"));
562
563 netsnmp_assert(NULL != rowreq_ctx);
564
565 /*
566 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndexSiteLocal data.
567 * copy (* ipv6ScopeZoneIndexSiteLocal_val_ptr ) from rowreq_ctx->data
568 */
569 (*ipv6ScopeZoneIndexSiteLocal_val_ptr) = 0;
570
571 return MFD_SUCCESS;
572 } /* ipv6ScopeZoneIndexSiteLocal_get */
573
574 /*---------------------------------------------------------------------
575 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndex6
576 * ipv6ScopeZoneIndex6 is subid 6 of ipv6ScopeZoneIndexEntry.
577 * Its status is Current, and its access level is ReadOnly.
578 * OID: .1.3.6.1.2.1.4.36.1.6
579 * Description:
580 The zone index for scope 6 on this interface.
581 *
582 * Attributes:
583 * accessible 1 isscalar 0 enums 0 hasdefval 0
584 * readable 1 iscolumn 1 ranges 0 hashint 1
585 * settable 0
586 * hint: d
587 *
588 *
589 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
590 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
591 */
592 /**
593 * Extract the current value of the ipv6ScopeZoneIndex6 data.
594 *
595 * Set a value using the data context for the row.
596 *
597 * @param rowreq_ctx
598 * Pointer to the row request context.
599 * @param ipv6ScopeZoneIndex6_val_ptr
600 * Pointer to storage for a u_long variable
601 *
602 * @retval MFD_SUCCESS : success
603 * @retval MFD_SKIP : skip this node (no value for now)
604 * @retval MFD_ERROR : Any other error
605 */
606 int
607 ipv6ScopeZoneIndex6_get(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx,
608 u_long * ipv6ScopeZoneIndex6_val_ptr)
609 {
610 /** we should have a non-NULL pointer */
611 netsnmp_assert(NULL != ipv6ScopeZoneIndex6_val_ptr);
612
613
614 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndex6_get",
615 "called\n"));
616
617 netsnmp_assert(NULL != rowreq_ctx);
618
619 /*
620 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndex6 data.
621 * copy (* ipv6ScopeZoneIndex6_val_ptr ) from rowreq_ctx->data
622 */
623 (*ipv6ScopeZoneIndex6_val_ptr) = 0;
624
625 return MFD_SUCCESS;
626 } /* ipv6ScopeZoneIndex6_get */
627
628 /*---------------------------------------------------------------------
629 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndex7
630 * ipv6ScopeZoneIndex7 is subid 7 of ipv6ScopeZoneIndexEntry.
631 * Its status is Current, and its access level is ReadOnly.
632 * OID: .1.3.6.1.2.1.4.36.1.7
633 * Description:
634 The zone index for scope 7 on this interface.
635 *
636 * Attributes:
637 * accessible 1 isscalar 0 enums 0 hasdefval 0
638 * readable 1 iscolumn 1 ranges 0 hashint 1
639 * settable 0
640 * hint: d
641 *
642 *
643 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
644 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
645 */
646 /**
647 * Extract the current value of the ipv6ScopeZoneIndex7 data.
648 *
649 * Set a value using the data context for the row.
650 *
651 * @param rowreq_ctx
652 * Pointer to the row request context.
653 * @param ipv6ScopeZoneIndex7_val_ptr
654 * Pointer to storage for a u_long variable
655 *
656 * @retval MFD_SUCCESS : success
657 * @retval MFD_SKIP : skip this node (no value for now)
658 * @retval MFD_ERROR : Any other error
659 */
660 int
661 ipv6ScopeZoneIndex7_get(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx,
662 u_long * ipv6ScopeZoneIndex7_val_ptr)
663 {
664 /** we should have a non-NULL pointer */
665 netsnmp_assert(NULL != ipv6ScopeZoneIndex7_val_ptr);
666
667
668 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndex7_get",
669 "called\n"));
670
671 netsnmp_assert(NULL != rowreq_ctx);
672
673 /*
674 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndex7 data.
675 * copy (* ipv6ScopeZoneIndex7_val_ptr ) from rowreq_ctx->data
676 */
677 (*ipv6ScopeZoneIndex7_val_ptr) = 0;
678
679 return MFD_SUCCESS;
680 } /* ipv6ScopeZoneIndex7_get */
681
682 /*---------------------------------------------------------------------
683 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndexOrganizationLocal
684 * ipv6ScopeZoneIndexOrganizationLocal is subid 8 of ipv6ScopeZoneIndexEntry.
685 * Its status is Current, and its access level is ReadOnly.
686 * OID: .1.3.6.1.2.1.4.36.1.8
687 * Description:
688 The zone index for the organization-local scope on this
689 interface.
690 *
691 * Attributes:
692 * accessible 1 isscalar 0 enums 0 hasdefval 0
693 * readable 1 iscolumn 1 ranges 0 hashint 1
694 * settable 0
695 * hint: d
696 *
697 *
698 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
699 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
700 */
701 /**
702 * Extract the current value of the ipv6ScopeZoneIndexOrganizationLocal data.
703 *
704 * Set a value using the data context for the row.
705 *
706 * @param rowreq_ctx
707 * Pointer to the row request context.
708 * @param ipv6ScopeZoneIndexOrganizationLocal_val_ptr
709 * Pointer to storage for a u_long variable
710 *
711 * @retval MFD_SUCCESS : success
712 * @retval MFD_SKIP : skip this node (no value for now)
713 * @retval MFD_ERROR : Any other error
714 */
715 int
716 ipv6ScopeZoneIndexOrganizationLocal_get(ipv6ScopeZoneIndexTable_rowreq_ctx
717 * rowreq_ctx,
718 u_long *
719 ipv6ScopeZoneIndexOrganizationLocal_val_ptr)
720 {
721 /** we should have a non-NULL pointer */
722 netsnmp_assert(NULL != ipv6ScopeZoneIndexOrganizationLocal_val_ptr);
723
724
725 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexOrganizationLocal_get", "called\n"));
726
727 netsnmp_assert(NULL != rowreq_ctx);
728
729 /*
730 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndexOrganizationLocal data.
731 * copy (* ipv6ScopeZoneIndexOrganizationLocal_val_ptr ) from rowreq_ctx->data
732 */
733 (*ipv6ScopeZoneIndexOrganizationLocal_val_ptr) = 0;
734
735 return MFD_SUCCESS;
736 } /* ipv6ScopeZoneIndexOrganizationLocal_get */
737
738 /*---------------------------------------------------------------------
739 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndex9
740 * ipv6ScopeZoneIndex9 is subid 9 of ipv6ScopeZoneIndexEntry.
741 * Its status is Current, and its access level is ReadOnly.
742 * OID: .1.3.6.1.2.1.4.36.1.9
743 * Description:
744 The zone index for scope 9 on this interface.
745 *
746 * Attributes:
747 * accessible 1 isscalar 0 enums 0 hasdefval 0
748 * readable 1 iscolumn 1 ranges 0 hashint 1
749 * settable 0
750 * hint: d
751 *
752 *
753 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
754 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
755 */
756 /**
757 * Extract the current value of the ipv6ScopeZoneIndex9 data.
758 *
759 * Set a value using the data context for the row.
760 *
761 * @param rowreq_ctx
762 * Pointer to the row request context.
763 * @param ipv6ScopeZoneIndex9_val_ptr
764 * Pointer to storage for a u_long variable
765 *
766 * @retval MFD_SUCCESS : success
767 * @retval MFD_SKIP : skip this node (no value for now)
768 * @retval MFD_ERROR : Any other error
769 */
770 int
771 ipv6ScopeZoneIndex9_get(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx,
772 u_long * ipv6ScopeZoneIndex9_val_ptr)
773 {
774 /** we should have a non-NULL pointer */
775 netsnmp_assert(NULL != ipv6ScopeZoneIndex9_val_ptr);
776
777
778 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndex9_get",
779 "called\n"));
780
781 netsnmp_assert(NULL != rowreq_ctx);
782
783 /*
784 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndex9 data.
785 * copy (* ipv6ScopeZoneIndex9_val_ptr ) from rowreq_ctx->data
786 */
787 (*ipv6ScopeZoneIndex9_val_ptr) = 0;
788
789 return MFD_SUCCESS;
790 } /* ipv6ScopeZoneIndex9_get */
791
792 /*---------------------------------------------------------------------
793 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndexA
794 * ipv6ScopeZoneIndexA is subid 10 of ipv6ScopeZoneIndexEntry.
795 * Its status is Current, and its access level is ReadOnly.
796 * OID: .1.3.6.1.2.1.4.36.1.10
797 * Description:
798 The zone index for scope A on this interface.
799 *
800 * Attributes:
801 * accessible 1 isscalar 0 enums 0 hasdefval 0
802 * readable 1 iscolumn 1 ranges 0 hashint 1
803 * settable 0
804 * hint: d
805 *
806 *
807 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
808 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
809 */
810 /**
811 * Extract the current value of the ipv6ScopeZoneIndexA data.
812 *
813 * Set a value using the data context for the row.
814 *
815 * @param rowreq_ctx
816 * Pointer to the row request context.
817 * @param ipv6ScopeZoneIndexA_val_ptr
818 * Pointer to storage for a u_long variable
819 *
820 * @retval MFD_SUCCESS : success
821 * @retval MFD_SKIP : skip this node (no value for now)
822 * @retval MFD_ERROR : Any other error
823 */
824 int
825 ipv6ScopeZoneIndexA_get(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx,
826 u_long * ipv6ScopeZoneIndexA_val_ptr)
827 {
828 /** we should have a non-NULL pointer */
829 netsnmp_assert(NULL != ipv6ScopeZoneIndexA_val_ptr);
830
831
832 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexA_get",
833 "called\n"));
834
835 netsnmp_assert(NULL != rowreq_ctx);
836
837 /*
838 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndexA data.
839 * copy (* ipv6ScopeZoneIndexA_val_ptr ) from rowreq_ctx->data
840 */
841 (*ipv6ScopeZoneIndexA_val_ptr) = 0;
842
843 return MFD_SUCCESS;
844 } /* ipv6ScopeZoneIndexA_get */
845
846 /*---------------------------------------------------------------------
847 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndexB
848 * ipv6ScopeZoneIndexB is subid 11 of ipv6ScopeZoneIndexEntry.
849 * Its status is Current, and its access level is ReadOnly.
850 * OID: .1.3.6.1.2.1.4.36.1.11
851 * Description:
852 The zone index for scope B on this interface.
853 *
854 * Attributes:
855 * accessible 1 isscalar 0 enums 0 hasdefval 0
856 * readable 1 iscolumn 1 ranges 0 hashint 1
857 * settable 0
858 * hint: d
859 *
860 *
861 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
862 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
863 */
864 /**
865 * Extract the current value of the ipv6ScopeZoneIndexB data.
866 *
867 * Set a value using the data context for the row.
868 *
869 * @param rowreq_ctx
870 * Pointer to the row request context.
871 * @param ipv6ScopeZoneIndexB_val_ptr
872 * Pointer to storage for a u_long variable
873 *
874 * @retval MFD_SUCCESS : success
875 * @retval MFD_SKIP : skip this node (no value for now)
876 * @retval MFD_ERROR : Any other error
877 */
878 int
879 ipv6ScopeZoneIndexB_get(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx,
880 u_long * ipv6ScopeZoneIndexB_val_ptr)
881 {
882 /** we should have a non-NULL pointer */
883 netsnmp_assert(NULL != ipv6ScopeZoneIndexB_val_ptr);
884
885
886 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexB_get",
887 "called\n"));
888
889 netsnmp_assert(NULL != rowreq_ctx);
890
891 /*
892 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndexB data.
893 * copy (* ipv6ScopeZoneIndexB_val_ptr ) from rowreq_ctx->data
894 */
895 (*ipv6ScopeZoneIndexB_val_ptr) = 0;
896
897 return MFD_SUCCESS;
898 } /* ipv6ScopeZoneIndexB_get */
899
900 /*---------------------------------------------------------------------
901 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndexC
902 * ipv6ScopeZoneIndexC is subid 12 of ipv6ScopeZoneIndexEntry.
903 * Its status is Current, and its access level is ReadOnly.
904 * OID: .1.3.6.1.2.1.4.36.1.12
905 * Description:
906 The zone index for scope C on this interface.
907 *
908 * Attributes:
909 * accessible 1 isscalar 0 enums 0 hasdefval 0
910 * readable 1 iscolumn 1 ranges 0 hashint 1
911 * settable 0
912 * hint: d
913 *
914 *
915 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
916 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
917 */
918 /**
919 * Extract the current value of the ipv6ScopeZoneIndexC data.
920 *
921 * Set a value using the data context for the row.
922 *
923 * @param rowreq_ctx
924 * Pointer to the row request context.
925 * @param ipv6ScopeZoneIndexC_val_ptr
926 * Pointer to storage for a u_long variable
927 *
928 * @retval MFD_SUCCESS : success
929 * @retval MFD_SKIP : skip this node (no value for now)
930 * @retval MFD_ERROR : Any other error
931 */
932 int
933 ipv6ScopeZoneIndexC_get(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx,
934 u_long * ipv6ScopeZoneIndexC_val_ptr)
935 {
936 /** we should have a non-NULL pointer */
937 netsnmp_assert(NULL != ipv6ScopeZoneIndexC_val_ptr);
938
939
940 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexC_get",
941 "called\n"));
942
943 netsnmp_assert(NULL != rowreq_ctx);
944
945 /*
946 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndexC data.
947 * copy (* ipv6ScopeZoneIndexC_val_ptr ) from rowreq_ctx->data
948 */
949 (*ipv6ScopeZoneIndexC_val_ptr) = 0;
950
951 return MFD_SUCCESS;
952 } /* ipv6ScopeZoneIndexC_get */
953
954 /*---------------------------------------------------------------------
955 * IP-MIB::ipv6ScopeZoneIndexEntry.ipv6ScopeZoneIndexD
956 * ipv6ScopeZoneIndexD is subid 13 of ipv6ScopeZoneIndexEntry.
957 * Its status is Current, and its access level is ReadOnly.
958 * OID: .1.3.6.1.2.1.4.36.1.13
959 * Description:
960 The zone index for scope D on this interface.
961 *
962 * Attributes:
963 * accessible 1 isscalar 0 enums 0 hasdefval 0
964 * readable 1 iscolumn 1 ranges 0 hashint 1
965 * settable 0
966 * hint: d
967 *
968 *
969 * Its syntax is InetZoneIndex (based on perltype UNSIGNED32)
970 * The net-snmp type is ASN_UNSIGNED. The C type decl is u_long (u_long)
971 */
972 /**
973 * Extract the current value of the ipv6ScopeZoneIndexD data.
974 *
975 * Set a value using the data context for the row.
976 *
977 * @param rowreq_ctx
978 * Pointer to the row request context.
979 * @param ipv6ScopeZoneIndexD_val_ptr
980 * Pointer to storage for a u_long variable
981 *
982 * @retval MFD_SUCCESS : success
983 * @retval MFD_SKIP : skip this node (no value for now)
984 * @retval MFD_ERROR : Any other error
985 */
986 int
987 ipv6ScopeZoneIndexD_get(ipv6ScopeZoneIndexTable_rowreq_ctx * rowreq_ctx,
988 u_long * ipv6ScopeZoneIndexD_val_ptr)
989 {
990 /** we should have a non-NULL pointer */
991 netsnmp_assert(NULL != ipv6ScopeZoneIndexD_val_ptr);
992
993
994 DEBUGMSGTL(("verbose:ipv6ScopeZoneIndexTable:ipv6ScopeZoneIndexD_get",
995 "called\n"));
996
997 netsnmp_assert(NULL != rowreq_ctx);
998
999 /*
1000 * TODO:231:o: |-> Extract the current value of the ipv6ScopeZoneIndexD data.
1001 * copy (* ipv6ScopeZoneIndexD_val_ptr ) from rowreq_ctx->data
1002 */
1003 (*ipv6ScopeZoneIndexD_val_ptr) = 0;
1004
1005 return MFD_SUCCESS;
1006 } /* ipv6ScopeZoneIndexD_get */
1007
1008
1009 /** @{ */