Den 28-04-2014 18:29, Eugenio Pérez skrev:
> I wanted to avoid innecesaries copies of buffer or calls to malloc
> system. I've noticed that, if I set NETSNMP_DS_LIB_HEX_OUTPUT_LENGTH to
> 0 at the beginning of the program, it works the way I want.
Of course! I should have thought about 0 meaning u
Hi Niels! Thanks for the answer!
I wanted to avoid innecesaries copies of buffer or calls to malloc system.
I've noticed that, if I set NETSNMP_DS_LIB_HEX_OUTPUT_LENGTH to 0 at the
beginning of the program, it works the way I want.
By the way, I am writing a plugin to send trap output to Apache K
Den 25-04-2014 10:15, Eugenio Pérez skrev:
> At the moment, I'm using:
> netsnmp_ds_set_int(NETSNMP_DS_LIBRARY_ID, NETSNMP_DS_LIB_HEX_OUTPUT_LENGTH,
> 2048);
> At the first of my program. However, this forces me to alloc a huge
> memory foreach line,
Yes and no. Nothing keeps you from realloc'ing