Re: "Holes" in oid sequence.
Robert Story <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Organization | Net-SNMP |
| Message-ID | <20050914163647.15dc6066@aud> |
On Wed, 14 Sep 2005 11:53:50 -0700 Tom wrote:
TC> We're continually adding new features to our product, and that's in
TC> conflict with the cardinal rule above. The process that I'm considering
TC> is to leave holes in the OID sequence, and new features will use those
TC> holes. Dropped features will also leave holes in the OID's. I can't ever
TC> want to use them again (because I'm sure someone out there will assume
TC> it's the old feature, not a new one).
As I said in my other message, I don't think you can leave holes in tables to
fill later. Just add new columns at the end. It won't be pretty, but it will
be 100% legal. Of course, leaving hole between branches or scalar variables is
perfectly legal. And your reasoning for not re-using old object is correct.
TC> >But this structure also includes a field
TC> >
TC> > netsnmp_column_info *valid_columns;
TC> >
TC> >
TC> I didn't know about this guy. I'll follow up on it.
If you use the CVS version of MFD, it generates a functions to allow you to
set the valid columns structure. Otherwise it assumes the column numbers are
contiguous. You should be able to add this function to your interface file:
void
myTable_valid_columns_set(netsnmp_column_info *vc)
{
myTable_if_ctx.tbl_info.valid_columns = vc;
} /* myTable_valid_columns_set */
Make sure the netsnmp_column_info structure you point to is not a local
variable (make it static, or allocate memory for it).
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users