~ubuntu-branches/ubuntu/wily/net-snmp/wily-proposed

« back to all changes in this revision

Viewing changes to local/mib2c.old-api.conf

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2010-06-28 14:59:36 UTC
  • mfrom: (1.2.3 upstream) (1.1.12 sid)
  • Revision ID: james.westby@ubuntu.com-20100628145936-cbiallic69pn044g
Tags: 5.4.3~dfsg-1ubuntu1
* Merge from debian unstable.  Remaining changes:
  - Set Ubuntu maintainer address.
  - net-snmp-config: Use bash. (LP: #104738)
  - Removed multiuser option when calling update-rc.d. (LP: #254261)
  - debian/snmpd.init: LSBify the init script.
  - debian/patches/52_fix_snmpcmd_1_typo.patch: Adjust a typo in snmpcmd.1
    (LP: #250459)
  - debian/snmpd.postinst: source debconf before doing work, LP: #589056
  - debian/snmp.preinst, debian/snmp.prerm: kill any/all processes owned by
    snmp user before install/uninstall, LP: #573391
  - Add apport hook (LP: #533603):
  - debian/{snmp,snmpd}.apport: Added.
  - debian/control: Build-depends on dh-apport.
  - debian/rules: 
    + Add --with apport.
    + override_dh_apport to install hook on snmpd package only.
 * Dropped patches:
   - debian/patches/99-fix-ubuntu-div0.patch: Fix dvision by zero.. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
@open ${name}.h@
6
6
/*
7
7
 * Note: this file originally auto-generated by mib2c using
8
 
 *        $Id: mib2c.old-api.conf 14476 2006-04-18 17:36:51Z hardaker $
 
8
 *        $Id: mib2c.old-api.conf 17851 2009-11-30 16:46:06Z dts12 $
9
9
 */
10
10
#ifndef $name.uc_H
11
11
#define $name.uc_H
36
36
@open ${name}.c@
37
37
/*
38
38
 * Note: this file originally auto-generated by mib2c using
39
 
 *        $Id: mib2c.old-api.conf 14476 2006-04-18 17:36:51Z hardaker $
 
39
 *        $Id: mib2c.old-api.conf 17851 2009-11-30 16:46:06Z dts12 $
40
40
 */
41
41
 
42
42
#include <net-snmp/net-snmp-config.h>
59
59
 *   for the $name mib section 
60
60
 */
61
61
 
62
 
struct variable7 ${name}_variables[] = {
 
62
struct variable4 ${name}_variables[] = {
63
63
/*  magic number        , variable type , ro/rw , callback fn  , L, oidsuffix */
64
64
@eval $magic = 0@
65
65
@eval $namelen = length("$name.commaoid")@
77
77
@end@
78
78
 
79
79
@foreach $i table@
80
 
 @eval $suffix = substr("$i.commaoid", $namelen + 1)@
 
80
 @eval $magic = 0@
 
81
 @eval $nlen2 = length("$i.commaoid")@
 
82
 @if $nlen2 > $namelen@
 
83
  @eval $suffix = substr("$i.commaoid", $namelen + 1)@
 
84
  @eval $ctmp = ","@
 
85
 @else@
 
86
  @eval $suffix = ""@
 
87
  @eval $ctmp = ""@
 
88
 @end@
81
89
 @eval $suffixlen = $i.oidlength - $name.oidlength + 2@
82
90
 @foreach $c column@
83
91
    @eval $magic = $magic + 1@
84
92
#define $c.uc           $magic
85
93
    @if $c.settable@
86
 
{$c.uc,  $c.type,  RWRITE,  var_${i}, $suffixlen,  { $suffix, 1, $c.subid }},
 
94
{$c.uc,  $c.type,  RWRITE,  var_${i}, $suffixlen,  { $suffix $ctmp 1, $c.subid }},
87
95
    @end@
88
96
    @if !$c.settable@
89
 
{$c.uc,  $c.type,  RONLY,   var_${i}, $suffixlen,  { $suffix, 1, $c.subid }},
 
97
{$c.uc,  $c.type,  RONLY,   var_${i}, $suffixlen,  { $suffix $ctmp 1, $c.subid }},
90
98
    @end@
91
99
 @end@
92
100
@end@