Net-SNMP Newbie
Linux 2.4.20 / 2.6.11     p4
FreeBSD 5.4     p4

GNU C (gcc)

I need to set the apply getsockopt() and setsockopt() against the socket(s)
used to send SNMP PDUs to an agent.  It's a must-have capability to transmit
packets with a defined TOS option configuration.

So far the only thing I've found that's close in the archives is to create
an netsnmp_transport and map it into the session using snmp_sess_add().

That's obviously better than my admittedly act-of-desperation hack:
Defeating the detail hiding / abstraction layer and use the session pointer
from snmp_open() to get access to the sock field of the netsnmp_transport
member of the session_list struct associated with that session.

I can't find any examples of how to create an netsnmp_transport obj and use
snmp_sess_add().  I'm working through the doc and the snmplib source to work
out the methodology, but if there's a fundamentally better way to do this
I'd love to hear about it.

rh








-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to