diff options
| author | Mark Stapp <mjs.ietf@gmail.com> | 2022-05-17 08:13:23 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-17 08:13:23 -0400 |
| commit | 6ca1b0f44e1a7719d94e42d24a8b529465371389 (patch) | |
| tree | 5cc4a95661f13d1ad437eae853a0ace9117867a6 /zebra/main.c | |
| parent | 4e216003958bbb3982b8abc34807484a5d4d3788 (diff) | |
| parent | 0c99696f302a750b211166e6f662f913c739f823 (diff) | |
Merge pull request #11192 from cyberstorm-mauritius/zebra_netlink
zebra: Add startup message and display netlink buffer size.
Diffstat (limited to 'zebra/main.c')
| -rw-r--r-- | zebra/main.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/zebra/main.c b/zebra/main.c index 7ef30d1d49..3ae20361be 100644 --- a/zebra/main.c +++ b/zebra/main.c @@ -79,8 +79,9 @@ int graceful_restart; bool v6_rr_semantics = false; /* Receive buffer size for kernel control sockets */ +#define RCVBUFSIZE_MIN 4194304 #ifdef HAVE_NETLINK -uint32_t rcvbufsize = 4194304; +uint32_t rcvbufsize = RCVBUFSIZE_MIN; #else uint32_t rcvbufsize = 128 * 1024; #endif @@ -365,6 +366,10 @@ int main(int argc, char **argv) break; case 's': rcvbufsize = atoi(optarg); + if (rcvbufsize < RCVBUFSIZE_MIN) + fprintf(stderr, + "Rcvbufsize is smaller than recommended value: %d\n", + RCVBUFSIZE_MIN); break; #ifdef HAVE_NETLINK case 'n': |
