<p>While testing the kamailio version 4.4.x on FreeBSD I found this in the log.</p>

<pre><code>May  4 17:16:26 <local0.warn> voip-integration-cust1 kamailio[1145]: WARNING: <core> [tcp_main.c:2754]: tcp_init(): setsockopt tos: Invalid argument
</code></pre>

<pre><code># freebsd-version 
10.3-RELEASE
</code></pre>

<pre><code>version: kamailio 4.4.0 (amd64/freebsd) d4f23c
flags: STATS: Off, USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MEM, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_PTHREAD_MUTEX, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES
MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, select, kqueue.
id: d4f23c 
compiled on 16:52:24 Apr 30 2016 with clang 3.4
</code></pre>

<p>In my config I haven't set <strong>any</strong> TOS</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/598">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AF36ZSjdreoLJS4rE7ZREEKqZFM9gqvxks5p-L3YgaJpZM4IXRk4.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/598"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>