projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libcollectdclient: Add LCC_NETWORK_BUFFER_SIZE.
[collectd.git]
/
src
/
libcollectdclient
/
collectd
/
server.h
diff --git
a/src/libcollectdclient/collectd/server.h
b/src/libcollectdclient/collectd/server.h
index
d190217
..
38bc68f
100644
(file)
--- a/
src/libcollectdclient/collectd/server.h
+++ b/
src/libcollectdclient/collectd/server.h
@@
-34,6
+34,10
@@
#include <stdint.h>
#include <stdint.h>
+#ifndef LCC_NETWORK_BUFFER_SIZE
+#define LCC_NETWORK_BUFFER_SIZE 1452
+#endif
+
LCC_BEGIN_DECLS
/* lcc_network_parser_t is a callback that parses received network packets. It
LCC_BEGIN_DECLS
/* lcc_network_parser_t is a callback that parses received network packets. It
@@
-62,7
+66,8
@@
typedef struct {
/* parse_options contains options for parser and is passed on verbatimely. */
lcc_network_parse_options_t parse_options;
/* parse_options contains options for parser and is passed on verbatimely. */
lcc_network_parse_options_t parse_options;
- /* buffer_size determines the maximum packet size to accept. */
+ /* buffer_size determines the maximum packet size to accept. Defaults to
+ * LCC_NETWORK_BUFFER_SIZE if set to zero. */
uint16_t buffer_size;
/* interface is the name of the interface to use when subscribing to a
uint16_t buffer_size;
/* interface is the name of the interface to use when subscribing to a