~ubuntu-branches/ubuntu/saucy/suricata/saucy-updates

« back to all changes in this revision

Viewing changes to src/source-af-packet.c

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier
  • Date: 2013-05-29 16:24:52 UTC
  • mfrom: (1.1.20)
  • Revision ID: package-import@ubuntu.com-20130529162452-kujdwfkf24i9qdfu
Tags: 1.4.2-1
ImportedĀ UpstreamĀ versionĀ 1.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
1545
1545
    if (ptv->copy_mode != AFP_COPY_MODE_NONE) {
1546
1546
        strlcpy(ptv->out_iface, afpconfig->out_iface, AFP_IFACE_NAME_LENGTH);
1547
1547
        ptv->out_iface[AFP_IFACE_NAME_LENGTH - 1]= '\0';
 
1548
        /* Warn about BPF filter consequence */
 
1549
        if (ptv->bpf_filter) {
 
1550
            SCLogWarning(SC_WARN_UNCOMMON, "Enabling a BPF filter in IPS mode result"
 
1551
                      " in dropping all non matching packets.");
 
1552
        }
1548
1553
    }
1549
1554
 
 
1555
 
1550
1556
    if (AFPPeersListAdd(ptv) == TM_ECODE_FAILED) {
1551
1557
        SCFree(ptv);
1552
1558
        afpconfig->DerefFunc(afpconfig);