title: net-snmp: force table to have xxEntry value of 2 instead of 1
body: <p>Using net-snmp, table code generated by <code>mib2c -c mib2c.iterate.conf fooBarTable</code> and then heavily hacked.</p>
  
  <p>Unfortunately the table is defined with an Entry of 2 instead of the normal 1. (I didn't do this, I'm trying to make this fit into an existing situation.) The MIB looks something like this:</p>
  
  <pre><code>fooBarTable OBJECT-TYPE
      SYNTAX          SEQUENCE OF FooBarEntry
      MAX-ACCESS      not-accessible
      STATUS          current
      DESCRIPTION    "blah"
      ::= { fooMIBObjects 8 }
  
  fooBarEntry OBJECT-TYPE
      SYNTAX          FooBarEntry
      MAX-ACCESS      not-accessible
      STATUS          current
      DESCRIPTION     "Stuff."
      INDEX { ifIndex }
      ::= { fooBarTable 2 }
  </code></pre>
  
  <p>When you register the table with net-snmp, you just give it an OID like "...,1,8" (i.e. up to fooBarTable, but not including the Entry). Net-snmp implicitly tacks the .1 to the table OID and then columns, indices, etc.</p>
  
  <p>Is there a semi-supported way to force that entry value to 2? (I.e. without resorting to hacking the bits out of the objects that are passed in to the handler.)</p>