On 12/4/06, Colin Whittaker <[EMAIL PROTECTED]> wrote: > I'm looking at implementing setting the IP TOS for SIP messages. > My first idea is to add a tport tag, say, TPTAG_TOS( x ). > And in each of the vtable functions of tport, > tport_udp_init_primary(), tport_tcp_init_primary(), and > tport_sctp_init_primary(), and tport_base_connect(), > add a > setsockopt( socket, IPPROTO_IP, IP_TOS, &tos, sizeof(tos) )
I guess tport_alloc_secondary() instead of tport_base_connect()? > Is this sufficient ? > Are there other places I would need to add this setting ? I'm not sure how the sockets inherit TOS settings. I guess that it is enough when you cover all the case where you make an UDP socket or TCP connection. SCTP does not really work with SIP. > Should I add tos to the tport_params_t ? Yep. -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Sofia-sip-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
