dump: enable optimizations in pcap_compile

Change-Id: Ide7b7fb262af741cccbbaf2faf7cbd92c50eb6af
diff --git a/tools/dump/ndndump.cpp b/tools/dump/ndndump.cpp
index fda16f0..4c6d814 100644
--- a/tools/dump/ndndump.cpp
+++ b/tools/dump/ndndump.cpp
@@ -122,10 +122,9 @@
     }
 
     bpf_program program;
-    int res = pcap_compile(m_pcap, &program, pcapFilter.data(), 0, PCAP_NETMASK_UNKNOWN);
+    int res = pcap_compile(m_pcap, &program, pcapFilter.data(), 1, PCAP_NETMASK_UNKNOWN);
     if (res < 0) {
-      BOOST_THROW_EXCEPTION(Error("Cannot parse pcap filter expression '" + pcapFilter + "': " +
-                                  pcap_geterr(m_pcap)));
+      BOOST_THROW_EXCEPTION(Error("Cannot compile pcap filter '" + pcapFilter + "': " + pcap_geterr(m_pcap)));
     }
 
     res = pcap_setfilter(m_pcap, &program);