Skip to content

service/wispr: Add Per-service-unique WISPr Host Route Metric/Priority

Grant Erickson connman 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11service: Add '__connman_service_get_route_metric'.src/connman.h src/service.c+66 -00 replies
2/11service: Document '__connman_service_get_route_metric'.src/service.c+34 -00 replies
3/11wispr: Expand 'DBG' in 'wispr_portal_detect'.src/wispr.c+2 -20 replies
4/11wispr: Add 'DBG' to '__connman_wispr_start' error path.src/wispr.c+2 -00 replies
5/11wispr: Update 'DBG' in '__connman_wispr_start'.src/wispr.c+1 -10 replies
6/11wispr: Refactor 'free_wispr_routes'.src/wispr.c+26 -190 replies
7/11wispr: Simplify IPv4 vs. IPv6 host route management.src/wispr.c+82 -300 replies
8/11wispr: Document 'free_wispr_route{,s}'.src/wispr.c+34 -00 replies
9/11wispr: Document 'wispr_route'.src/wispr.c+19 -00 replies
10/11wispr: Document 'wispr_portal_context_route_ops'.src/wispr.c+10 -00 replies
11/11wispr: Leverage '__connman_service_get_route_metric'.src/wispr.c+11 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/11] service/wispr: Add Per-service-unique WISPr Host Route Metric/Priority

This add and leverages '__connman_service_get_route_metric' to select an appropriate service-specific route metric/priority when adding or deleting WISPr host routes.

This allows multiple such routes to coexist simultaneously, supporting "continuous" mode online checks in which one or more services may be conducting "online" WISPr-based Internet reachability checks as they move in and out of reachability success/failure.

'__connman_service_get_route_metric' is a non-public service interface, which attempts to get the route metric/priority for the specified service based on the current service and services state.

If the service is the default or if it is the only service, then the metric is zero (0). Otherwise, a low-priority metric (metric > 0) unique to the service and its underlying network interface is computed and returned.

Grant Erickson (11):
service: Add '__connman_service_get_route_metric'.
service: Document '__connman_service_get_route_metric'.
wispr: Expand 'DBG' in 'wispr_portal_detect'.
wispr: Add 'DBG' to '__connman_wispr_start' error path.
wispr: Update 'DBG' in '__connman_wispr_start'.
wispr: Refactor 'free_wispr_routes'.
wispr: Simplify IPv4 vs. IPv6 host route management.
wispr: Document 'free_wispr_route{,s}'.
wispr: Document 'wispr_route'.
wispr: Document 'wispr_portal_context_route_ops'.
wispr: Leverage '__connman_service_get_route_metric'.

 src/connman.h |   2 +
 src/service.c |  98 ++++++++++++++++++++++++
 src/wispr.c   | 207 +++++++++++++++++++++++++++++++++++++++++---------
 3 files changed, 271 insertions(+), 36 deletions(-)
Signature · 1 line
2.42.0