/// @todo: instantiate LeaseMgr here once it is imlpemented.
IfaceMgr::instance().printIfaces();
+#if 0
+ // uncomment this once #1238, #992 and #1239 are merged
IfaceMgr::instance().openSockets4(port);
+#endif
setServerID();
}
// Now try to open IPv6 sockets on detected interfaces.
+ cout << "Opening sockets on port " << port << endl;
+#if 0
+ // uncomment this once #1238, #992 and #1239 are merged
IfaceMgr::instance().openSockets6(port);
+#endif
/// @todo: instantiate LeaseMgr here once it is imlpemented.
#include <boost/shared_ptr.hpp>
#include <boost/noncopyable.hpp>
-#include "dhcp/pkt6.h"
-#include "dhcp/option.h"
+#include <dhcp/dhcp6.h>
+#include <dhcp/pkt6.h>
+#include <dhcp/option.h>
#include <iostream>
namespace isc {
}
#endif
-bool IfaceMgr::openSockets6() {
+bool IfaceMgr::openSockets6(uint16_t port) {
int sock;
for (IfaceLst::iterator iface=ifaces_.begin();
continue;
}
- sock = openSocket(iface->name_, *addr,
- DHCP6_SERVER_PORT);
+ sock = openSocket(iface->name_, *addr, port);
if (sock<0) {
cout << "Failed to open unicast socket." << endl;
return (false);
private:
/// Opens sockets on detected interfaces.
- bool
- openSockets6();
+ ///
+ /// @param port specifies port on which sockets will be open
+ bool openSockets6(uint16_t port);
/// creates a single instance of this class (a singleton implementation)
static void