busybox: nslookup: ensure unique transaction IDs for the DNS queries
authorUwe Kleine-König <uwe@kleine-koenig.org>
Fri, 14 Oct 2022 10:23:07 +0000 (12:23 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Fri, 14 Oct 2022 19:10:54 +0000 (21:10 +0200)
commitbc8e24c654050d7fcafd8d6f179bf1ffdf6045fa
treeec6b7a3b8c286522a9700be4065067cc3fe26798
parentf1de43d0a045a154c74281bc60bf1c44c990071b
busybox: nslookup: ensure unique transaction IDs for the DNS queries

On machines with a coarse monotonic clock (here: TP-Link RE200 powered
by a MediaTek MT7620A) it can happen that the two DNS requests (for A
and AAAA) share the same transaction ID. If this happens the second
reply is wrongly dropped and nslookup reports "No answer".

Fix this by ensuring that the transaction IDs are unique.

Signed-off-by: Uwe Kleine-König <uwe@kleine-koenig.org>
(cherry picked from commit 63e5ba8e69f03a584b707520db0a0821eda3024f)
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
package/utils/busybox/patches/530-nslookup-ensure-unique-transaction-IDs-for-the-DNS-queries.patch [new file with mode: 0644]