face: introduce PcapHelper class
Change-Id: I26f7d43394e1b17f314c226ca6bce723c2410ae3
Refs: #4011
diff --git a/wscript b/wscript
index 9bb3e15..ace1e8e 100644
--- a/wscript
+++ b/wscript
@@ -201,7 +201,8 @@
name='daemon-objects',
features='cxx',
source=bld.path.ant_glob(['daemon/**/*.cpp'],
- excl=['daemon/face/ethernet-*.cpp',
+ excl=['daemon/face/*ethernet*.cpp',
+ 'daemon/face/*pcap*.cpp',
'daemon/face/unix-*.cpp',
'daemon/face/websocket-*.cpp',
'daemon/main.cpp']),
@@ -210,7 +211,8 @@
export_includes='daemon')
if bld.env['HAVE_LIBPCAP']:
- nfd_objects.source += bld.path.ant_glob('daemon/face/ethernet-*.cpp')
+ nfd_objects.source += bld.path.ant_glob('daemon/face/*ethernet*.cpp')
+ nfd_objects.source += bld.path.ant_glob('daemon/face/*pcap*.cpp')
nfd_objects.use += ' LIBPCAP'
if bld.env['HAVE_UNIX_SOCKETS']: