connman.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* dnsproxy: first round of refactoring, TCP bugfix
@ 2022-04-19 10:34 Matthias Gerstner
  2022-04-19 10:34 ` [PATCH 01/12] dnsproxy-simple-test: improve test coverage and test flexibility Matthias Gerstner
                   ` (12 more replies)
  0 siblings, 13 replies; 26+ messages in thread
From: Matthias Gerstner @ 2022-04-19 10:34 UTC (permalink / raw)
  To: connman

This is a first iteration of refactoring the dnsproxy codebase. It is no major
change of the code structure yet, more a local refactoring of each function
trying to make the existing code more readable and less redundant.

Part of this is also improved testing capability, minor fixes of bugs
encountered during refactoring and a bugfix of the TCP protocol operation if
domain name appending is in effect.



^ permalink raw reply	[flat|nested] 26+ messages in thread
* dnsproxy: first round of refactoring, TCP bugfix
@ 2022-06-10 12:33 Matthias Gerstner
  0 siblings, 0 replies; 26+ messages in thread
From: Matthias Gerstner @ 2022-06-10 12:33 UTC (permalink / raw)
  To: connman

Second round of patches with Daniel's comments adressed:

- consistently use macros for various sizeof() calculations
- moved a default: label to the bottom of the switch
- early exit & coding style fix in cache_free_ipv[46]
- more verbose commit messages with refactoring details (they're a bit
  repetitive)
- added C99 compiler requirement to autoconf
- fixed a few newly occuring GCC warnings
- added my copyright to dnsproxy.c



^ permalink raw reply	[flat|nested] 26+ messages in thread
* dnsproxy: first round of refactoring, TCP bugfix
@ 2022-10-18  8:47 Matthias Gerstner
  2022-10-18  8:55 ` Matthias Gerstner
  0 siblings, 1 reply; 26+ messages in thread
From: Matthias Gerstner @ 2022-10-18  8:47 UTC (permalink / raw)
  To: connman

From Matthias Gerstner <matthias.gerstner@suse.de> # This line is ignored.
From: Matthias Gerstner <matthias.gerstner@suse.de>
Reply-To: 
Subject: dnsproxy: first round of refactoring, TCP bugfix
In-Reply-To: 



^ permalink raw reply	[flat|nested] 26+ messages in thread
* dnsproxy: first round of refactoring, TCP bugfix
@ 2022-10-27 10:32 Matthias Gerstner
  2022-11-03  7:20 ` Daniel Wagner
  0 siblings, 1 reply; 26+ messages in thread
From: Matthias Gerstner @ 2022-10-27 10:32 UTC (permalink / raw)
  To: connman

Sorry about the messed up previous set of patches.

So this round features the following changes:

- every commit should now successfully compile and also compile without
  warnings
- as requested I let go off most of the mixed code/declarations at the loss of
  some const variables that now need to be declared non-const at the start
  of the functions. In a few spots I left a little mixed code / declarations
  just at the beginning of the function block to allow for early exits when
  e.g. insufficient input data is supplied. Declarations at the beginning of
  for/while/if blocks still remain where suitable.



^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~2022-11-03  7:25 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-19 10:34 dnsproxy: first round of refactoring, TCP bugfix Matthias Gerstner
2022-04-19 10:34 ` [PATCH 01/12] dnsproxy-simple-test: improve test coverage and test flexibility Matthias Gerstner
2022-04-19 10:34 ` [PATCH 02/12] dnsproxy: first bits of refactoring data types, global variables, simpler functions Matthias Gerstner
2022-05-25  6:47   ` Daniel Wagner
2022-05-25  6:48   ` Daniel Wagner
2022-04-19 10:34 ` [PATCH 03/12] dnsproxy: refactoring of update_cached_ttl() and append_data() Matthias Gerstner
2022-05-25  6:45   ` Daniel Wagner
2022-06-10 12:26     ` Matthias Gerstner
2022-04-19 10:34 ` [PATCH 04/12] dnsproxy: refactor parse_response() Matthias Gerstner
2022-04-19 10:34 ` [PATCH 05/12] dnsproxy: further refactoring of cache_update() Matthias Gerstner
2022-05-25  6:51   ` Daniel Wagner
2022-04-19 10:34 ` [PATCH 06/12] dnsproxy: strip_domains(): fix out of bounds read access Matthias Gerstner
2022-04-19 10:34 ` [PATCH 07/12] dnsproxy: refactor and document strip_domains() to make it less confusing Matthias Gerstner
2022-04-19 10:34 ` [PATCH 08/12] dnsproxy: refactor larger functions ns_resolv() and forwards_dns_reply() Matthias Gerstner
2022-04-19 10:34 ` [PATCH 09/12] dnsproxy: uncompress: replace unnecessary goto with return statements Matthias Gerstner
2022-04-19 10:34 ` [PATCH 10/12] dnsproxy: forward_dns_reply: pull out separate dns_reply_fixup_domains() Matthias Gerstner
2022-04-19 10:35 ` [PATCH 11/12] dnsproxy: finish first pass of refactoring the compilation unit Matthias Gerstner
2022-04-19 10:35 ` [PATCH 12/12] dnsproxy: fix TCP server reply handling if domain name is appended Matthias Gerstner
2022-05-25  7:01 ` dnsproxy: first round of refactoring, TCP bugfix Daniel Wagner
2022-06-10 12:28   ` Matthias Gerstner
2022-06-10 12:33 Matthias Gerstner
2022-10-18  8:47 Matthias Gerstner
2022-10-18  8:55 ` Matthias Gerstner
2022-10-24  7:40   ` Daniel Wagner
2022-10-27 10:32 Matthias Gerstner
2022-11-03  7:20 ` Daniel Wagner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).