On 23 July 2012 07:52, Madhu Sudhana Rao <[email protected]> wrote:
> I want to implement udpEndpointTable of UDP-MIB.txt.

Why?
There is already an implementation of this table
(The code for this is under 'mibgroup/udp-mib/udpEndpointTable')
Why repeat something that has already been done?



> I found that there are some files (below) missing in
> agent/mibgroup/udp-mib/data_access for the same
> udp_endpoint_linux.h
> udp_endpoint_ioctl.h

There is no explicit architecture-specfic header files,
because there are no architecture-specific interfaces
that need to be exported.
   The only routines in the code files tend to be the
common architecture-specific hooks (defined in
udp_endpoint_private.h),  and a handful of static
internal routines.   Being static, there's no point in
declaring these in a header file!




> Where as I found similar files for IP-MIB in
> agent/mibgroup/ip-mib/data_access
> ipaddress_linux.h
> ipaddress_ioctl.h

  Have you tried looking at the contents of these files?
The linux-specific header file is basically just pulling
in the ioctl module.
The ioctl header file is defining various structures and
interfaces that the linux code will need to use.
The implementation is not all contained within a single
code file, so *does* need to declare things for external use.



> my question is without these files can we implement udpEndpointTable of
> UDP-MIB and IpSystemStatsTable of IP-MIB ?

My question is - have you actually tried compiling the code?
You should find that yes - it *is* possible to implement these
tables with the files as they currently stand.
   And the existing code does precisely that!


Dave

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to