Unfortunately, it's got to be controlled directly by the application. Just a requirement I have to live with.
rh ----- Original Message ----- From: "G. S. Marzot" <[EMAIL PROTECTED]> To: "RH" <[EMAIL PROTECTED]>; <net-snmp-coders@lists.sourceforge.net> Sent: Tuesday, September 13, 2005 12:56 PM Subject: RE: Setting TOS option (newbie) > Another option which would allow you to avoid code altogether is to use > iptables config to set the TOS field on selected packets. This would work > for Linux (not sure about FreeBSD)...provided there is some reasonable > testable criteria for selecting the packets to be modified. > > -G > > > -----Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] Behalf Of RH > > Sent: Tuesday, September 13, 2005 11:46 AM > > To: net-snmp-coders@lists.sourceforge.net > > Subject: Setting TOS option (newbie) > > > > > > 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 > > ------------------------------------------------------- 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-coders mailing list Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/net-snmp-coders