How to increase net.core.rmem_max value by c code
<p>I tried to increase the value <code>SO_RCVBUF</code> using</p>

<p><code>getsockopt(udp_fd, SOL_SOCKET, SO_RCVBUF, &amp;rcvBufferSize, &amp;sockOptSize)</code> </p>

<p>but I am not able to increase it more than <code>rmem_max</code> value .</p>

<p>How can I increase it using <a href="/questions/tagged/c" class="post-tag" title="show questions tagged &#39;c&#39;" rel="tag">c</a> language.</p>

<p>I don't want to increase it by command :</p>

<pre><code>$ sysctl -w net.core.rmem_max=value
</code></pre>