diff options
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r-- | ripd/ripd.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c index af0e186d..5fbb3492 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -42,6 +42,10 @@ #include "ripd/ripd.h" #include "ripd/rip_debug.h" +/* UDP receive buffer size */ +#define RIP_UDP_RCV_BUF 41600 + +/* privileges global */ extern struct zebra_privs_t ripd_privs; /* RIP Structure. */ @@ -1977,6 +1981,7 @@ rip_create_socket () sockopt_broadcast (sock); sockopt_reuseaddr (sock); sockopt_reuseport (sock); + setsockopt_so_recvbuf (sock, RIP_UDP_RCV_BUF); #ifdef RIP_RECVMSG setsockopt_pktinfo (sock); #endif /* RIP_RECVMSG */ |