Skip to content

Address Unhandled Gateway Route Lifecycle Events/Transitions

Grant Erickson connman 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5inet: Use '__connman_inet_rtnl_recv' for RTNL default route transaction.src/inet.c+6 -00 replies
2/5gateway: Handle -ESRCH in 'unset_default_gateway_route_common'.src/gateway.c+25 -30 replies
3/5gateway: Address unhandled gateway lifecycle events/transitions.src/gateway.c+21 -120 replies
4/5gateway: Add and leveage 'gateway_config_set_{,in}active'.src/gateway.c+18 -90 replies
5/5gateway: Expand the @param documentation for 'yield_default_gateway{,_for_type}'.src/gateway.c+8 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] Address Unhandled Gateway Route Lifecycle Events/Transitions

There were a number of "escapes" or unhandled events and transitions that did not adhere to the documented gateway configuration lifecycle / state machine.

Failure to handle these was resulting in duplicate default routes, no default routes, and incorrect default route priorities for some services and their underlying network interfaces.

These "escapes" were handled in three primary ways with this patch series:

1. Leveraging '__connman_inet_rtnl_recv' in 'iproute_default_modify'.
2. Leveraging -ESRCH returned by 'iproute_default_modify'.
3. Adding explicit conditional cases for the "escapes" not otherwise

     covered by (1) and (2).

Grant Erickson (5):
inet: Use '__connman_inet_rtnl_recv' for RTNL default route
transaction.
gateway: Handle -ESRCH in 'unset_default_gateway_route_common'.
gateway: Address unhandled gateway lifecycle events/transitions.
gateway: Add and leveage 'gateway_config_set_{,in}active'.
gateway: Expand the @param documentation for

    'yield_default_gateway{,_for_type}'.
 src/gateway.c | 80 +++++++++++++++++++++++++++++++++++++++------------
 src/inet.c    |  6 ++++
 2 files changed, 68 insertions(+), 18 deletions(-)
Signature · 1 line
2.42.0