function like printf,in Bro language
Wang Shaofu
wsffree at hotmail.com
Tue Aug 6 20:31:42 PDT 2002
Hi
:)
I make one change in demux.bro :
...
function demux_conn(id: conn_id, tag: string, otag: string, rtag: string):
bool
{
...
if ( ! created_demux_dir )
{
mkdir(demux_dir);
created_demux_dir = T;
printf("%s",demux_dir);
~~~~~~~~~~~~~~~~~~~~~~~~~~~change here.
}
...
}
...
And invoke bro ,using : ./bro -i eth0 demux.bro
And the output is :
policy/demux.bro,line 21 (printf):error,undeclared variable
policy/demux.bro,line 21 (printf(%s,demux_dir)):warning,expression
value ignored
Is there a function doing what does "printf" do ,in Bro language?
Thanks for your help,and have a nice day. :)
cloud
_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger:
http://messenger.microsoft.com/cn/
More information about the Bro
mailing list