Re: mib2c generation of snmpNotifyFilterTable code

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
2010/1/13 Lewis Adam-VNQM87 <[email protected]>:
> Looking at the files that combine to provide support for the
> snmpNotifyFilterTable:
>
>  agent\mibgroup\notification\snmpNotifyFilterTable.c
>  agent\mibgroup\notification\snmpNotifyFilterTable_data_access.c
>  agent\mibgroup\notification\snmpNotifyFilterTable_interface.c
>  etc.

I presume you mean "snmp-notification-mib" rather than "notification"
The FilterTable has been implemented separately from the basic
NotifyTable, and the FilterProfileTable


> I can see that these files are generated by mib2c but what I can't see
> are the exact commands (presumably in a makefile somewhere) that
> generate these files.

>From the style of the filenames, this looks like an MfD-based
implementation.


> Is the code generation completely generic or has there been some
> customisation specifically for snmpNotifyFilterTable?

Almost *every* MIB implementation will include specific customisation.
There are very few MIBs where mib2c will generate fully-working code.

The purpose of mib2c is to produce a *template* for a MIB implementation,
not to generate the final code automatically.   It only knows about the
syntax of the MIB objects - it can't possible handle the semantics
of these objects.   That's what the (human) coder is for.


> I think I have found a problem (setting rowStatus to createAndWait
> should leave it in notInService state rather than createAndWait state)
> and I wanted to know how best to apply a fix.

I think you're probably right.
The routine snmpNotifyFilterTable_check_dependencies()
handles the mapping of createAndGo into Active,
but doesn't do anything with createAndWait vs notInService/notReady


Feel free to submit a patch to the project tracker.

Dave

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.