c++ - Is there any way the openldap allows us to set a DSCP (QOS(IP_TOS) in IP layer) values? -
my application uses openldap stack send request ldap server, want set dscp (ip_tos) values there way this? in advance
sure, use setsockopt on ldap sockets:
#include <sys/types.h> #include <sys/socket.h> int tos = iptos_lowdelay; if (setsockopt(sock, ipproto_ip, ip_tos, (char *) &tos, sizeof(tos)) < 0 ) { printf("failed setting tos on socket"); abort(); }
Comments
Post a Comment