Disabling DPD


For the purpose of testing my scripts, sometimes i am interested in looking at results only from a particular protocol. However, everything is enabled by default. So i have HTTP, SMTP, FTP… analysis going on when i am only interested in, say, DNS. I redefined PacketFilter::all_packets=F in bro_init but to no avail. Then i made the same change in the actual script file instead of redefining all_packets in my script, still the same behavior. Please correct me if i am doing it wrong :slight_smile:



    redef PacketFilter::all_packets = F;
    redef capture_filters = [[ "only-dns"] = "port 53"];