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
16
Merge Requests
16
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
53f6f17b
Commit
53f6f17b
authored
Jan 14, 2014
by
Marek Vavrusa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated references to further work.
parent
8f8561a4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
19 additions
and
16 deletions
+19
-16
src/knot/server/notify.c
src/knot/server/notify.c
+1
-1
src/libknot/nameserver/name-server.c
src/libknot/nameserver/name-server.c
+0
-2
src/libknot/nameserver/nsec_proofs.c
src/libknot/nameserver/nsec_proofs.c
+7
-0
src/libknot/packet/pkt.c
src/libknot/packet/pkt.c
+2
-2
src/libknot/packet/pkt.h
src/libknot/packet/pkt.h
+4
-4
tests/ns.c
tests/ns.c
+3
-3
tests/pkt.c
tests/pkt.c
+2
-4
No files found.
src/knot/server/notify.c
View file @
53f6f17b
...
...
@@ -59,7 +59,7 @@ static int notify_request(const knot_rrset_t *rrset,
return
KNOT_ERROR
;
}
/* Write back size, #1
0
crappy API. */
/* Write back size, #1
89
crappy API. */
*
size
=
pkt
->
size
;
knot_pkt_free
(
&
pkt
);
...
...
src/libknot/nameserver/name-server.c
View file @
53f6f17b
...
...
@@ -579,5 +579,3 @@ int ns_proc_out(uint8_t *wire, uint16_t *wire_len, ns_proc_context_t *ctx)
dbg_ns
(
"%s -> %s
\n
"
,
__func__
,
NS_STATE_STR
(
ctx
->
state
));
return
ctx
->
state
;
}
/* #10 >>> Next-gen API. */
src/libknot/nameserver/nsec_proofs.c
View file @
53f6f17b
...
...
@@ -9,6 +9,13 @@
#define DNSSEC_ENABLED 1
/*! \note #191 There is a lot of duplicate and legacy code here. I have just
* divided the API into 3 + 1 basic proofs used and separated the
* code to its own file. Still, it should be cleaned up and
* each proof should be very briefly documented (what proves what)
* with hints to the RFC, as it's not so complicated as it looks here.
*/
/*----------------------------------------------------------------------------*/
/*!
...
...
src/libknot/packet/pkt.c
View file @
53f6f17b
...
...
@@ -822,7 +822,7 @@ int knot_pkt_parse_payload(knot_pkt_t *pkt, unsigned flags)
return
KNOT_EOK
;
}
/*** <<< #
10
DEPRECATED */
/*** <<< #
8
DEPRECATED */
/*----------------------------------------------------------------------------*/
int
knot_pkt_add_opt
(
knot_pkt_t
*
resp
,
...
...
@@ -878,5 +878,5 @@ int knot_pkt_add_opt(knot_pkt_t *resp,
return
KNOT_EOK
;
}
/*** >>> #
10
DEPRECATED */
/*** >>> #
8
DEPRECATED */
/*----------------------------------------------------------------------------*/
src/libknot/packet/pkt.h
View file @
53f6f17b
...
...
@@ -86,12 +86,12 @@ typedef struct knot_pkt {
knot_opt_rr_t
opt_rr
;
/*!< OPT RR included in the packet. */
knot_rrset_t
*
tsig_rr
;
/*!< TSIG RR stored in the packet. */
/* #1
0
<<< SHOULD BE IN ANSWERING CONTEXT */
/* #1
89
<<< SHOULD BE IN ANSWERING CONTEXT */
/*! \todo Could be removed after NSEC proof port to packet processing,
* and request processing module. */
const
knot_tsig_key_t
*
tsig_key
;
const
struct
knot_pkt
*
query
;
/*!< Associated query. */
/* #1
0
>>> SHOULD BE IN ANSWERING CONTEXT */
/* #1
89
>>> SHOULD BE IN ANSWERING CONTEXT */
/* Packet sections. */
knot_section_t
current
;
...
...
@@ -298,7 +298,7 @@ static inline bool knot_pkt_have_nsid(const knot_pkt_t *pkt)
&&
knot_edns_has_option
(
&
pkt
->
opt_rr
,
EDNS_OPTION_NSID
);
}
/*** <<< #10 DEPRECATED */
/*** <<< #1
9
0 DEPRECATED */
/*----------------------------------------------------------------------------*/
/*!
* \brief Sets the OPT RR of the response.
...
...
@@ -326,7 +326,7 @@ int knot_pkt_add_opt(knot_pkt_t *resp,
int
add_nsid
);
/*----------------------------------------------------------------------------*/
/*** >>> #10 DEPRECATED */
/*** >>> #1
9
0 DEPRECATED */
#endif
/* _KNOT_PACKET_H_ */
...
...
tests/ns.c
View file @
53f6f17b
...
...
@@ -194,9 +194,9 @@ int main(int argc, char *argv[])
exec_query
(
&
query_ctx
,
"IN/ixfr"
,
query
->
wire
,
query
->
size
,
KNOT_RCODE_NOTAUTH
);
/* \note Tests below are not possible without proper zone and zone data. */
/* #1
0
Process UPDATE query. */
/* #1
0
Process AXFR client. */
/* #1
0
Process IXFR client. */
/* #1
89
Process UPDATE query. */
/* #1
89
Process AXFR client. */
/* #1
89
Process IXFR client. */
/* Query processor (smaller than DNS header, ignore). */
state
=
ns_proc_reset
(
&
query_ctx
);
...
...
tests/pkt.c
View file @
53f6f17b
...
...
@@ -144,7 +144,7 @@ int main(int argc, char *argv[])
ok
(
knot_dname_is_equal
(
knot_pkt_qname
(
out
),
knot_pkt_qname
(
in
)),
"pkt: equal qname"
);
/*
#10 c
heck counts */
/*
C
heck counts */
is_int
(
knot_wire_get_qdcount
(
out
->
wire
),
knot_wire_get_qdcount
(
in
->
wire
),
"pkt: QD match"
);
is_int
(
knot_wire_get_ancount
(
out
->
wire
),
...
...
@@ -154,7 +154,7 @@ int main(int argc, char *argv[])
is_int
(
knot_wire_get_arcount
(
out
->
wire
),
knot_wire_get_arcount
(
in
->
wire
),
"pkt: AR match"
);
/*
#10 c
heck RRs */
/*
C
heck RRs */
int
rr_matched
=
0
;
for
(
unsigned
i
=
0
;
i
<
NAMECOUNT
;
++
i
)
{
if
(
knot_rrset_equal
(
out
->
rr
[
i
],
in
->
rr
[
i
],
KNOT_RRSET_COMPARE_WHOLE
)
>
0
)
{
...
...
@@ -163,8 +163,6 @@ int main(int argc, char *argv[])
}
is_int
(
NAMECOUNT
,
rr_matched
,
"pkt: RR content match"
);
/* #10 check signature */
/* Free packets. */
knot_pkt_free
(
&
out
);
knot_pkt_free
(
&
in
);
...
...
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