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
24
Issues
24
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
ac1d567d
Commit
ac1d567d
authored
Jul 17, 2015
by
Daniel Salzman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
utils: fix EDNS UDP payload size setting if TCP
parent
c3c124f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
src/utils/kdig/kdig_exec.c
src/utils/kdig/kdig_exec.c
+2
-5
No files found.
src/utils/kdig/kdig_exec.c
View file @
ac1d567d
...
...
@@ -273,10 +273,7 @@ static knot_pkt_t* create_query_packet(const query_t *query)
// Set packet buffer size.
uint16_t
max_size
;
if
(
query
->
udp_size
<
0
)
{
if
(
get_socktype
(
query
->
protocol
,
query
->
type_num
)
==
SOCK_STREAM
)
{
max_size
=
MAX_PACKET_SIZE
;
}
else
if
(
use_edns
(
query
))
{
if
(
use_edns
(
query
))
{
max_size
=
DEFAULT_EDNS_SIZE
;
}
else
{
max_size
=
DEFAULT_UDP_SIZE
;
...
...
@@ -383,7 +380,7 @@ static knot_pkt_t* create_query_packet(const query_t *query)
knot_pkt_begin
(
packet
,
KNOT_ADDITIONAL
);
// Create EDNS section if required.
if
(
query
->
udp_size
>
0
||
use_edns
(
query
))
{
if
(
query
->
udp_size
>
=
0
||
use_edns
(
query
))
{
int
ret
=
add_query_edns
(
packet
,
query
,
max_size
);
if
(
ret
!=
KNOT_EOK
)
{
ERR
(
"can't set up EDNS section
\n
"
);
...
...
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