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
Knot DNS
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
22
Issues
22
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Knot projects
Knot DNS
Commits
80fbd4c3
Commit
80fbd4c3
authored
Jan 22, 2013
by
Marek Vavrusa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added debugging option for nsupdate.
parent
6fdb37b8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
3 deletions
+15
-3
Knot.files
Knot.files
+1
-0
src/Makefile.am
src/Makefile.am
+2
-0
src/utils/common/msg.h
src/utils/common/msg.h
+7
-1
src/utils/common/params.c
src/utils/common/params.c
+1
-0
src/utils/nsupdate/nsupdate_exec.c
src/utils/nsupdate/nsupdate_exec.c
+1
-1
src/utils/nsupdate/nsupdate_params.c
src/utils/nsupdate/nsupdate_params.c
+3
-1
No files found.
Knot.files
View file @
80fbd4c3
...
...
@@ -274,6 +274,7 @@ doc/running.texi
src/libknot/zone/zone-diff.h
src/libknot/zone/zone-diff.c
src/utils/common/msg.h
src/utils/common/msg.c
src/utils/common/params.c
src/utils/common/params.h
src/utils/common/resolv.c
...
...
src/Makefile.am
View file @
80fbd4c3
...
...
@@ -32,6 +32,7 @@ knotc_SOURCES = \
khost_SOURCES
=
\
utils/common/msg.h
\
utils/common/msg.c
\
utils/common/exec.c
\
utils/common/exec.h
\
utils/common/params.c
\
...
...
@@ -50,6 +51,7 @@ khost_SOURCES = \
knsupdate_SOURCES
=
\
utils/common/msg.h
\
utils/common/msg.c
\
utils/common/params.c
\
utils/common/params.h
\
utils/common/resolv.c
\
...
...
src/utils/common/msg.h
View file @
80fbd4c3
...
...
@@ -36,8 +36,14 @@
#define ERR(m...) { printf(ERROR_ m); fflush(stdout); }
#define WARN(m...) { printf(WARNING_ m); fflush(stdout); }
/*! \brief Enable/disable debugging. */
int
msg_enable_debug
(
int
val
);
/*! \brief Print debug message. */
int
msg_debug
(
const
char
*
fmt
,
...);
#ifndef NDEBUG
#define DBG(m...)
{ printf(DEBUG_ m); fflush(stdout); }
#define DBG(m...)
msg_debug(DEBUG_ m)
#else
#define DBG(m...)
#endif
...
...
src/utils/common/params.c
View file @
80fbd4c3
...
...
@@ -180,6 +180,7 @@ void params_flag_tcp(params_t *params)
void
params_flag_verbose
(
params_t
*
params
)
{
params
->
format
=
FORMAT_VERBOSE
;
}
int
params_parse_interval
(
const
char
*
value
,
int32_t
*
dst
)
...
...
src/utils/nsupdate/nsupdate_exec.c
View file @
80fbd4c3
...
...
@@ -721,7 +721,7 @@ int cmd_send(const char* lp, params_t *params)
return
KNOT_ERROR
;
}
/*! \todo TCP fallback
, timeout settings
. */
/*! \todo TCP fallback. */
/* Wait for reception. */
uint8_t
rwire
[
MAX_PACKET_SIZE
];
...
...
src/utils/nsupdate/nsupdate_params.c
View file @
80fbd4c3
...
...
@@ -151,9 +151,11 @@ int nsupdate_params_parse(params_t *params, int argc, char *argv[])
}
/* Command line options processing. */
while
((
opt
=
getopt
(
argc
,
argv
,
"dvp:t:r:"
))
!=
-
1
)
{
while
((
opt
=
getopt
(
argc
,
argv
,
"d
D
vp:t:r:"
))
!=
-
1
)
{
switch
(
opt
)
{
case
'd'
:
case
'D'
:
/* Extra debugging. */
msg_enable_debug
(
1
);
params_flag_verbose
(
params
);
break
;
case
'v'
:
...
...
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