2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 05:27:55 +00:00

IfaceMgr compilation fix for BSD systems.

This commit is contained in:
Tomek Mrugalski 2012-05-09 15:23:54 +02:00
parent c3b6b5bbce
commit 16e7be2080

View File

@ -28,19 +28,25 @@ namespace isc {
void
IfaceMgr::detectIfaces() {
// TODO do the actual detection on BSDs. Currently just calling
// stub implementation.
/// @todo do the actual detection on BSDs. Currently just calling
/// stub implementation.
stubDetectIfaces();
}
void IfaceMgr::os_send4_setup(struct msghdr& ,
boost::scoped_array<char>& ,
size_t , const Pkt4Ptr& ) {
// do nothing here. There's nothing BSD specific to do and os_send4_setup()
// interface is there only to not mix Linux-specific code in common
// IfaceMgr file.
void IfaceMgr::os_send4(struct msghdr& /*m*/,
boost::scoped_array<char>& /*control_buf*/,
size_t /*control_buf_len*/,
const Pkt4Ptr& /*pkt*/) {
// @todo: Are there any specific actions required before sending IPv4 packet
// 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.
}
}