diff options
author | Quentin Young <qlyoung@users.noreply.github.com> | 2019-04-09 16:59:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-09 16:59:00 +0200 |
commit | e3659a9a726e3ec3cd3ca16ab33e04968b1f37ce (patch) | |
tree | efd8d7b75e81087e01363b2ec45da9fa0f38533f /ospfd | |
parent | Merge pull request #4095 from pacovn/201904_master__lm_aliasing_fixes (diff) | |
parent | *: setting the socket send/recv buffer sizes doesn't need elevated privs (diff) | |
download | frr-e3659a9a726e3ec3cd3ca16ab33e04968b1f37ce.tar.xz frr-e3659a9a726e3ec3cd3ca16ab33e04968b1f37ce.zip |
Merge pull request #4102 from opensourcerouting/sendbuf_recvbuf_privs
*: setting the socket send/recv buffer sizes doesn't need elevated privs
Diffstat (limited to 'ospfd')
-rw-r--r-- | ospfd/ospf_network.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index e30bb0ffe..1415a6e8b 100644 --- a/ospfd/ospf_network.c +++ b/ospfd/ospf_network.c @@ -234,11 +234,11 @@ int ospf_sock_init(struct ospf *ospf) flog_err(EC_LIB_SOCKET, "Can't set pktinfo option for fd %d", ospf_sock); - - setsockopt_so_sendbuf(ospf_sock, bufsize); - setsockopt_so_recvbuf(ospf_sock, bufsize); } + setsockopt_so_sendbuf(ospf_sock, bufsize); + setsockopt_so_recvbuf(ospf_sock, bufsize); + ospf->fd = ospf_sock; return ret; } |