From 16e7be208020dd3eee46b0d8c120c23ae5f50ccc Mon Sep 17 00:00:00 2001 From: Tomek Mrugalski Date: Wed, 9 May 2012 15:23:54 +0200 Subject: [PATCH] IfaceMgr compilation fix for BSD systems. --- src/lib/dhcp/iface_mgr_bsd.cc | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/src/lib/dhcp/iface_mgr_bsd.cc b/src/lib/dhcp/iface_mgr_bsd.cc index 8e56df0fa6..aa6dd5b2d3 100644 --- a/src/lib/dhcp/iface_mgr_bsd.cc +++ b/src/lib/dhcp/iface_mgr_bsd.cc @@ -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& , - 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& /*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. +} }