diff --git a/plugins/in_syslog/syslog.c b/plugins/in_syslog/syslog.c index 0bd14894f2d..d13afd29ef8 100644 --- a/plugins/in_syslog/syslog.c +++ b/plugins/in_syslog/syslog.c @@ -228,8 +228,8 @@ static struct flb_config_map config_map[] = { "Set the parser" }, { - FLB_CONFIG_MAP_SIZE, "buffer_rcv_size", (char *)NULL, - 0, FLB_TRUE, offsetof(struct flb_syslog, buffer_rcv_size), + FLB_CONFIG_MAP_SIZE, "receive_buffer_size", (char *)NULL, + 0, FLB_TRUE, offsetof(struct flb_syslog, receive_buffer_size), "Set the socket receiving buffer size" }, /* EOF */ diff --git a/plugins/in_syslog/syslog.h b/plugins/in_syslog/syslog.h index 987de013cfc..0962db9a2ef 100644 --- a/plugins/in_syslog/syslog.h +++ b/plugins/in_syslog/syslog.h @@ -49,7 +49,7 @@ struct flb_syslog { flb_sds_t unix_path; flb_sds_t unix_perm_str; unsigned int unix_perm; - size_t buffer_rcv_size; + size_t receive_buffer_size; /* UDP buffer, data length and buffer size */ // char *buffer_data; diff --git a/plugins/in_syslog/syslog_conf.c b/plugins/in_syslog/syslog_conf.c index b9c10336324..064f26a91f3 100644 --- a/plugins/in_syslog/syslog_conf.c +++ b/plugins/in_syslog/syslog_conf.c @@ -117,8 +117,8 @@ struct flb_syslog *syslog_conf_create(struct flb_input_instance *ins, } /* Socket rcv buffer size */ - if (ctx->buffer_rcv_size == -1 || ctx->buffer_rcv_size>INT_MAX) { - flb_plg_error(ins, "invalid buffer_rcv_size"); + if (ctx->receive_buffer_size == -1 || ctx->receive_buffer_size>INT_MAX) { + flb_plg_error(ins, "invalid receive_buffer_size"); flb_free(ctx); return NULL; } diff --git a/plugins/in_syslog/syslog_server.c b/plugins/in_syslog/syslog_server.c index aa23619623d..58c0797c824 100644 --- a/plugins/in_syslog/syslog_server.c +++ b/plugins/in_syslog/syslog_server.c @@ -166,10 +166,11 @@ static int syslog_server_net_create(struct flb_syslog *ctx) return -1; } - if (ctx->buffer_rcv_size) { - if (flb_net_socket_rcv_buffer(ctx->downstream->server_fd, ctx->buffer_rcv_size)) { + if (ctx->receive_buffer_size) { + if (flb_net_socket_rcv_buffer(ctx->downstream->server_fd, + ctx->receive_buffer_size)) { flb_error("[in_syslog] could not set rcv buffer to %ld. Aborting", - ctx->buffer_rcv_size); + ctx->receive_buffer_size); return -1; } }