How to increase net.core.rmem_max value from c code

前端 未结 2 1798
南方客
南方客 2021-01-23 10:11

I tried to increase the value SO_RCVBUF by getsockopt(udp_fd, SOL_SOCKET, SO_RCVBUF, &rcvBufferSize, &sockOptSize) but I am not able to increase it more than rmem_

2条回答
  •  日久生厌
    2021-01-23 10:18

    So please tell me how can I increase it by C Code

    If the process has root rights, then let it printf the desired number to

    /proc/sys/net/core/rmem_max
    

提交回复
热议问题