Setting Type of Service/DSCP fields for SNMP Messages

"Bob ONeil" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
I need to set the Type of Service or the Differentiated Services Code Point
(DSCP) values (Quality of Service (QoS)) value for all messages between the
net-snmp agent and a SNMP system manager.

 

I am able to accomplish this under Linux using the setsockopt() for my
custom application, but need to be able to customize DSCP for net-snmp.  

 

Does anyone have any ideas on how to most efficiently do this with net-snmp.
Assuming that the source code would need to be modified,  would it be a
simple one line change somewhere?

 

 

    // Returns 0 on success, -1 for errors

    int iRet = setsockopt(socketDescriptor,       // Socket descriptor

                          IPPROTO_IP,             // Socket level

                          IP_TOS,                 // Socket option (type of
service)

                          (char *)&DSCPValue,     // Option value buffer

                          sizeof(DSCPValue));     // Size of field

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
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.