log_file variable in ftp.bro

I think Vern meant to say "module FTP" and
  
  redef FTP::log_file = open_log_file("comex");

Yep, thanks! Hazards of sending email before one's morning coffee ...

    Vern

Hi Vern/Christian,
    Ya,It's Ok to modify the script as what you said.I see that this is the result from "scope" used in ftp.bro.
    However,I don't understand that Why to import the concept of "scope" and "module" such as "module FTP" in ftp.bro and "module HTTP" in http.bro? What advantages has it?

Thanks,
Cliff

It's just to have a concept of namespaces -- in a large policy
configuration there's a good chance that symbol names (for variables,
functions etc) would collide. The module and export statements allow you
to control how much pollution you cause in other modules. Also it's much
nicer if you don't have to think all the time about whether a symbol
name might already exist in another module.

Cheers,
Christian.

Hi Christian,
    Very thank you for your detailed explanation. :slight_smile:
    The concept of "scope" is the same with the "namespace" of C++.

Thanks,
Cliff