-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mike Beaumont <[email protected]>
- Loading branch information
1 parent
bc61b0f
commit 769d873
Showing
6 changed files
with
130 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
patches/v1.27-0001-dns-don-t-error-if-header-id-is-0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 41ef76a374e9f1f4668d2f7d32de16dd1d982aa5 Mon Sep 17 00:00:00 2001 | ||
From: Mike Beaumont <[email protected]> | ||
Date: Tue, 9 Jul 2024 10:14:29 +0200 | ||
Subject: [PATCH] dns: don't error if header id is 0 | ||
|
||
--- | ||
source/extensions/filters/udp/dns_filter/dns_parser.cc | 4 ---- | ||
1 file changed, 4 deletions(-) | ||
|
||
diff --git a/source/extensions/filters/udp/dns_filter/dns_parser.cc b/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
index b63f69278d..9be5917d9b 100644 | ||
--- a/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
+++ b/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
@@ -212,10 +212,6 @@ bool DnsMessageParser::parseDnsObject(DnsQueryContextPtr& context, | ||
} | ||
|
||
context->id_ = static_cast<uint16_t>(context->header_.id); | ||
- if (context->id_ == 0) { | ||
- ENVOY_LOG(debug, "No ID in DNS query"); | ||
- return false; | ||
- } | ||
|
||
// Almost always, we will have only one query here. Per the RFC, QDCOUNT is usually 1 | ||
context->queries_.reserve(context->header_.questions); | ||
-- | ||
2.45.2 | ||
|
27 changes: 27 additions & 0 deletions
27
patches/v1.28-0001-dns-don-t-error-if-header-id-is-0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 42af03c8d830fdc2899350f87ac4fe4b4a8e437e Mon Sep 17 00:00:00 2001 | ||
From: Mike Beaumont <[email protected]> | ||
Date: Tue, 9 Jul 2024 10:14:29 +0200 | ||
Subject: [PATCH] dns: don't error if header id is 0 | ||
|
||
--- | ||
source/extensions/filters/udp/dns_filter/dns_parser.cc | 4 ---- | ||
1 file changed, 4 deletions(-) | ||
|
||
diff --git a/source/extensions/filters/udp/dns_filter/dns_parser.cc b/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
index b63f69278d..9be5917d9b 100644 | ||
--- a/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
+++ b/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
@@ -212,10 +212,6 @@ bool DnsMessageParser::parseDnsObject(DnsQueryContextPtr& context, | ||
} | ||
|
||
context->id_ = static_cast<uint16_t>(context->header_.id); | ||
- if (context->id_ == 0) { | ||
- ENVOY_LOG(debug, "No ID in DNS query"); | ||
- return false; | ||
- } | ||
|
||
// Almost always, we will have only one query here. Per the RFC, QDCOUNT is usually 1 | ||
context->queries_.reserve(context->header_.questions); | ||
-- | ||
2.45.2 | ||
|
27 changes: 27 additions & 0 deletions
27
patches/v1.29-0001-dns-don-t-error-if-header-id-is-0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From 12ddfa3964f010d5fc8290570389f71d49e14533 Mon Sep 17 00:00:00 2001 | ||
From: Mike Beaumont <[email protected]> | ||
Date: Tue, 9 Jul 2024 10:14:29 +0200 | ||
Subject: [PATCH] dns: don't error if header id is 0 | ||
|
||
--- | ||
source/extensions/filters/udp/dns_filter/dns_parser.cc | 4 ---- | ||
1 file changed, 4 deletions(-) | ||
|
||
diff --git a/source/extensions/filters/udp/dns_filter/dns_parser.cc b/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
index b63f69278d..9be5917d9b 100644 | ||
--- a/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
+++ b/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
@@ -212,10 +212,6 @@ bool DnsMessageParser::parseDnsObject(DnsQueryContextPtr& context, | ||
} | ||
|
||
context->id_ = static_cast<uint16_t>(context->header_.id); | ||
- if (context->id_ == 0) { | ||
- ENVOY_LOG(debug, "No ID in DNS query"); | ||
- return false; | ||
- } | ||
|
||
// Almost always, we will have only one query here. Per the RFC, QDCOUNT is usually 1 | ||
context->queries_.reserve(context->header_.questions); | ||
-- | ||
2.45.2 | ||
|
27 changes: 27 additions & 0 deletions
27
patches/v1.30-0001-dns-don-t-error-if-header-id-is-0.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
From db432303b88ef5197ad6ed330a15173bf7967e1d Mon Sep 17 00:00:00 2001 | ||
From: Mike Beaumont <[email protected]> | ||
Date: Tue, 9 Jul 2024 10:14:29 +0200 | ||
Subject: [PATCH] dns: don't error if header id is 0 | ||
|
||
--- | ||
source/extensions/filters/udp/dns_filter/dns_parser.cc | 4 ---- | ||
1 file changed, 4 deletions(-) | ||
|
||
diff --git a/source/extensions/filters/udp/dns_filter/dns_parser.cc b/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
index b63f69278d..9be5917d9b 100644 | ||
--- a/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
+++ b/source/extensions/filters/udp/dns_filter/dns_parser.cc | ||
@@ -212,10 +212,6 @@ bool DnsMessageParser::parseDnsObject(DnsQueryContextPtr& context, | ||
} | ||
|
||
context->id_ = static_cast<uint16_t>(context->header_.id); | ||
- if (context->id_ == 0) { | ||
- ENVOY_LOG(debug, "No ID in DNS query"); | ||
- return false; | ||
- } | ||
|
||
// Almost always, we will have only one query here. Per the RFC, QDCOUNT is usually 1 | ||
context->queries_.reserve(context->header_.questions); | ||
-- | ||
2.45.2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters