Browse Source

IfaceMgr compilation fix for BSD systems.

Tomek Mrugalski 13 years ago
parent
commit
16e7be2080
1 changed files with 14 additions and 8 deletions
  1. 14 8
      src/lib/dhcp/iface_mgr_bsd.cc

+ 14 - 8
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<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.
+}
 
 }