connection: Refactor 'connection_newgateway'
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | connection: Refactor 'connection_newgateway'.src/ | +55 | 1 reply | |
| 2/4 | connection: Document 'check_default_gateway'.src/ | +20 | 0 replies | |
| 3/4 | connection: Rename 'choose_default_gateway'.src/ | +43 | 0 replies | |
| 4/4 | connection: Document 'yield_default_gateway'.src/ | +60 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/4] connection: Refactor 'connection_newgateway'
This refactors the body tail of 'connection_newgateway' into a new, separate function, 'check_default_gateway', shortening the length of the former and making the latter an individually auditable and comprehensible function.
In addition, this renames 'choose_default_gateway' as 'yield_default_gateway'. The latter more accurately reflects the action of the function which is determining which of two gateway data should cede or yield the default gateway and associated routes. The actual "choice" and acquisition of the default gateway and associated routes happens outside of the function.
Grant Erickson (4):
connection: Refactor 'connection_newgateway'.
connection: Document 'check_default_gateway'.
connection: Rename 'choose_default_gateway'.
connection: Document 'yield_default_gateway'.
src/connection.c | 234 ++++++++++++++++++++++++++++++++++------------- 1 file changed, 172 insertions(+), 62 deletions(-)
Signature · 1 line
2.42.0