Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian Schrader
Kea
Commits
ae3d891f
Commit
ae3d891f
authored
Sep 14, 2018
by
Francis Dupont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[master] Fixed netconf compilation
parent
517982b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/bin/netconf/main.cc
src/bin/netconf/main.cc
+5
-5
No files found.
src/bin/netconf/main.cc
View file @
ae3d891f
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#include <netconf/netconf_log.h>
#include <netconf/netconf_log.h>
#include <exceptions/exceptions.h>
#include <exceptions/exceptions.h>
#include <
dhcpsrv
/daemon.h>
#include <
process
/daemon.h>
#include <iostream>
#include <iostream>
#include <fstream>
#include <fstream>
#include <unistd.h>
#include <unistd.h>
...
@@ -36,7 +36,7 @@ usage() {
...
@@ -36,7 +36,7 @@ usage() {
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
/// @name Temporary code until isc::
dhcp
::Daemon is used.
/// @name Temporary code until isc::
process
::Daemon is used.
///
///
/// @{
/// @{
const
char
*
PID_FILENAME
=
"kea-netconf.test_config.pid"
;
const
char
*
PID_FILENAME
=
"kea-netconf.test_config.pid"
;
...
@@ -46,7 +46,7 @@ volatile bool SHUTDOWN_FLAG = false;
...
@@ -46,7 +46,7 @@ volatile bool SHUTDOWN_FLAG = false;
void
void
createPIDFile
(
int
pid
)
{
createPIDFile
(
int
pid
)
{
// This is not a real implemented. We will soon use the one coming
// This is not a real implemented. We will soon use the one coming
// from isc::
dhcp
::Daemon AFTER it's moved to libprocess.
// from isc::
process
::Daemon AFTER it's moved to libprocess.
ofstream
file
(
PID_FILENAME
,
ios
::
trunc
);
ofstream
file
(
PID_FILENAME
,
ios
::
trunc
);
file
<<
pid
;
file
<<
pid
;
...
@@ -101,7 +101,7 @@ main(int argc, char* argv[]) {
...
@@ -101,7 +101,7 @@ main(int argc, char* argv[]) {
int
ret
=
EXIT_SUCCESS
;
int
ret
=
EXIT_SUCCESS
;
try
{
try
{
// Temporary code. This will be replaced with isc::
dhcp
::Daemon
// Temporary code. This will be replaced with isc::
process
::Daemon
// once it is migrated to libprocess. We DO NOT want to bring
// once it is migrated to libprocess. We DO NOT want to bring
// the whole libdhcpsrv into netconf.
// the whole libdhcpsrv into netconf.
createPIDFile
(
getpid
());
createPIDFile
(
getpid
());
...
@@ -111,7 +111,7 @@ main(int argc, char* argv[]) {
...
@@ -111,7 +111,7 @@ main(int argc, char* argv[]) {
// Initialize logging. If verbose, we'll use maximum verbosity.
// Initialize logging. If verbose, we'll use maximum verbosity.
bool
verbose_mode
=
true
;
bool
verbose_mode
=
true
;
isc
::
dhcp
::
Daemon
::
loggerInit
(
NETCONF_LOGGER_NAME
,
verbose_mode
);
isc
::
process
::
Daemon
::
loggerInit
(
NETCONF_LOGGER_NAME
,
verbose_mode
);
LOG_INFO
(
netconf_logger
,
NETCONF_STARTING
).
arg
(
VERSION
).
arg
(
getpid
());
LOG_INFO
(
netconf_logger
,
NETCONF_STARTING
).
arg
(
VERSION
).
arg
(
getpid
());
Connection
conn
(
"kea-netconf"
);
Connection
conn
(
"kea-netconf"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment