[Olsr-users] olsrd bandwidth vs static routes

Henning Rogge (spam-protected)
Fri Nov 27 07:46:22 CET 2009


On Thu November 26 2009 16:37:17 Joseph Chop wrote:
> the only thing i can suspect is the code in ifnet.c
> 
> #ifdef linux
>   /* Set TOS */
> 
>   if (setsockopt(ifp->olsr_socket, SOL_SOCKET, SO_PRIORITY, (char
> *)&precedence, sizeof(precedence)) < 0) {
>     perror("setsockopt(SO_PRIORITY)");
>     olsr_syslog(OLSR_LOG_ERR, "OLSRD: setsockopt(SO_PRIORITY) error %m");
>   }
>   if (setsockopt(ifp->olsr_socket, SOL_IP, IP_TOS, (char *)&tos_bits,
> sizeof(tos_bits)) < 0) {
>     perror("setsockopt(IP_TOS)");
>     olsr_syslog(OLSR_LOG_ERR, "setsockopt(IP_TOS) error %m");
>   }
> #endif
> 
> Perhaps this code affects the queuing system.  I'll experiment and get back
> to you.  Thanks for your input.
This code can set the TOS (type of service) IP field for outgoing OLSR 
packages. It does not change anything for the unicast.

Henning Rogge

-- 
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-263,   Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20091127/63b54ed9/attachment.sig>


More information about the Olsr-users mailing list