Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Adam Osuchowski
Kea
Commits
fa9feb90
Commit
fa9feb90
authored
Apr 25, 2013
by
Marcin Siodelski
Browse files
[2902] Build LPF sockets on Linux only.
parent
ae0620ed
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/lib/dhcp/Makefile.am
View file @
fa9feb90
...
...
@@ -38,7 +38,11 @@ libb10_dhcp___la_SOURCES += pkt6.cc pkt6.h
libb10_dhcp___la_SOURCES
+=
pkt4.cc pkt4.h
libb10_dhcp___la_SOURCES
+=
pkt_filter.h
libb10_dhcp___la_SOURCES
+=
pkt_filter_inet.cc pkt_filter_inet.h
if
OS_LINUX
libb10_dhcp___la_SOURCES
+=
pkt_filter_lpf.cc pkt_filter_lpf.h
endif
libb10_dhcp___la_SOURCES
+=
std_option_defs.h
libb10_dhcp___la_CXXFLAGS
=
$(AM_CXXFLAGS)
...
...
src/lib/dhcp/tests/Makefile.am
View file @
fa9feb90
...
...
@@ -44,7 +44,11 @@ libdhcp___unittests_SOURCES += option_space_unittest.cc
libdhcp___unittests_SOURCES
+=
pkt4_unittest.cc
libdhcp___unittests_SOURCES
+=
pkt6_unittest.cc
libdhcp___unittests_SOURCES
+=
pkt_filter_inet_unittest.cc
if
OS_LINUX
libdhcp___unittests_SOURCES
+=
pkt_filter_lpf_unittest.cc
endif
libdhcp___unittests_SOURCES
+=
protocol_util_unittest.cc
libdhcp___unittests_SOURCES
+=
duid_unittest.cc
...
...
src/lib/dhcp/tests/iface_mgr_unittest.cc
View file @
fa9feb90
...
...
@@ -19,7 +19,6 @@
#include
<dhcp/iface_mgr.h>
#include
<dhcp/pkt6.h>
#include
<dhcp/pkt_filter.h>
#include
<dhcp/pkt_filter_lpf.h>
#include
<boost/scoped_ptr.hpp>
#include
<gtest/gtest.h>
...
...
@@ -105,7 +104,6 @@ class NakedIfaceMgr: public IfaceMgr {
// "naked" Interface Manager, exposes internal fields
public:
NakedIfaceMgr
()
{
// setPacketFilter(PktFilterPtr(new PktFilterLPF()));
}
IfaceCollection
&
getIfacesLst
()
{
return
ifaces_
;
}
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment