mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-31 22:15:23 +00:00
IfaceMgr compilation fix for BSD systems.
This commit is contained in:
@@ -28,19 +28,25 @@ namespace isc {
|
|||||||
|
|
||||||
void
|
void
|
||||||
IfaceMgr::detectIfaces() {
|
IfaceMgr::detectIfaces() {
|
||||||
// TODO do the actual detection on BSDs. Currently just calling
|
/// @todo do the actual detection on BSDs. Currently just calling
|
||||||
// stub implementation.
|
/// stub implementation.
|
||||||
stubDetectIfaces();
|
stubDetectIfaces();
|
||||||
}
|
}
|
||||||
|
|
||||||
void IfaceMgr::os_send4_setup(struct msghdr& ,
|
void IfaceMgr::os_send4(struct msghdr& /*m*/,
|
||||||
boost::scoped_array<char>& ,
|
boost::scoped_array<char>& /*control_buf*/,
|
||||||
size_t , const Pkt4Ptr& ) {
|
size_t /*control_buf_len*/,
|
||||||
// do nothing here. There's nothing BSD specific to do and os_send4_setup()
|
const Pkt4Ptr& /*pkt*/) {
|
||||||
// interface is there only to not mix Linux-specific code in common
|
// @todo: Are there any specific actions required before sending IPv4 packet
|
||||||
// IfaceMgr file.
|
// on BSDs? See iface_mgr_linux.cc for working Linux implementation.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool IfaceMgr::os_receive4(struct msghdr& /*m*/, Pkt4Ptr& /*pkt*/) {
|
||||||
|
// @todo: Are there any specific actions required before receiving IPv4 packet
|
||||||
|
// on BSDs? See iface_mgr_linux.cc for working Linux implementation.
|
||||||
|
|
||||||
|
return (true); // pretend that we have everything set up for reception.
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user