Added support for setting the IP_TOS value for the socket

Change-Id: I34f1455fbea031598021b6d4e55b0b973d2d9a23
Replaced exponential backoff time for reliable packet timeouts with linear one

Change-Id: I1b13318a2795e8bb72f461960540336d7effc7e0