Thank You.
I will look in there. I am curious, where does the +128 come from.
I was receiving an error message, but I understood it was a print issue within
the GUI and not an actual character limitation "**ERROR** Buffer too short @
httpd.c:1431"
It looks as though I may be wrong. I also am not a programmer, so any help
would be greatly appreciated. It looks like the globals-defines.h defines the
LEN_GENERAL_WORK_BUFFER, would this be where I make the change? The 1024 of the
General Work Buffer seems to fit.
M
#define LEN_TIMEFORMAT_BUFFER 48
#define LEN_CMDLINE_BUFFER 4096
#define LEN_FGETS_BUFFER 512
#define LEN_HUGE_WORK_BUFFER 4096
define LEN_GENERAL_WORK_BUFFER 4096
#define LEN_GENERAL_WORK_BUFFER 1024
#define LEN_MEDIUM_WORK_BUFFER 128
#define LEN_SMALL_WORK_BUFFER 24 /* nnn.nnn.nnn.nnn\n */
#define LEN_ADDRESS_BUFFER
sizeof("FEDC:BA98:7654:3210:FEDC:BA98:7654:3210")+4
From: [email protected]
[mailto:[email protected]] On Behalf Of Alex DEKKER
Sent: Monday, September 17, 2012 12:38 PM
To: [email protected]
Subject: Re: [Ntop] BPF Character Limitation?
On 13/09/12 18:30, Cabeza de Baca, Matthew wrote:
My current BPF filter is 1,151 characters with no spaces and 1037 characters
with spaces. If I add one more exclude, even changing : !(port 137) to !(port
137,53) the entire filter stops working.
Sounds like the limit is 1024 + 128 = 1152. Do you get any errors in the log
when your BPF is too large?
I'm no C or Ntop codebase expert, but I think the bit of the code that is of
interest is in util.c around line 1532.
alexd
________________________________
This e-mail message, including any attachments, is for the
sole use of the intended recipient(s) and may contain
confidential or privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If
you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
________________________________
Think Green! Please do not print this e-mail unless you need to. Thank you.
_______________________________________________
Ntop mailing list
[email protected]
http://listgateway.unipi.it/mailman/listinfo/ntop