Welcome! Log In Create A New Profile

Advanced

sflow module and increasing useragent

Mark Moseley
August 09, 2011 09:22PM
If I wanted to increase the amount of bytes logged by the sflow module
for the user agent to, say, 128 bytes, what would I need to change?

I tried changing this:

(in ngx_http_sflow.h)
#define SFLHTTP_MAX_USERAGENT_LEN 128

but I still get the user agent truncated at 64 bytes. Nor does it seem
like SFLHTTP_MAX_USERAGENT_LEN is used anywhere in the code (or any
SFLHTTP_MAX_* define).

I'm sure I could whack on it long enough to get it to work, but I ask
mainly because I don't want to cause some buffer/format/etc overflow
somewhere else down the line. Thanks!

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

sflow module and increasing useragent

Mark Moseley August 09, 2011 09:22PM

Re: sflow module and increasing useragent

Neil Mckee August 10, 2011 01:40AM

Re: sflow module and increasing useragent

Mark Moseley August 10, 2011 12:56PM

Re: sflow module and increasing useragent

Neil Mckee August 10, 2011 03:44PM

Re: sflow module and increasing useragent

Mark Moseley August 11, 2011 05:48PM

Re: sflow module and increasing useragent

Neil Mckee August 11, 2011 07:16PM

Re: sflow module and increasing useragent

Mark Moseley August 12, 2011 01:10PM

Re: sflow module and increasing useragent

Neil Mckee August 12, 2011 04:00PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 200
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready