Skip to content

inet: Add IPv{4,6} Host/Network Route Add/Delete with Metric / Priority Functions

Grant Erickson connman 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8inet: Relocate 'rtnl_route_cmd2string'.src/inet.c+12 -120 replies
2/8inet: Reorder IPv6 host and network route function declarations.include/inet.h+4 -30 replies
3/8inet: Add IPv{4,6} host/network route functions with metric/priority.include/inet.h src/inet.c+479 -320 replies
4/8connection: Document 'inet_get_addr_data'.src/inet.c+31 -00 replies
5/8connection: Document 'inet_mask_addr_data'.src/inet.c+25 -00 replies
6/8connection: Document 'inet_modify_host_or_network_route'.src/inet.c+61 -00 replies
7/8connection: Document 'inet_modify_{,ipv4_,ipv6_}{host,network}_route'.src/inet.c+321 -00 replies
8/8inet: Document IPv{4,6} host/network route functions with metric/priority.src/inet.c+338 -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 0/8] inet: Add IPv{4,6} Host/Network Route Add/Delete with Metric / Priority Functions

This adds and documents 'connman_inet_{add,del}_{,ipv6_}{host,network}_route_with_metric' functions that provide the ability to add/delete an IPv4 or IPv6 host or network route with an explicit metric / priority.

As a convenience, the 'connman_inet_{add,del}_{,ipv6_}network_route_with_metric' network route functions allow the caller to provide the IPv4 or IPv6 network address in masked (for example, 169.254.0.0/16) or unmasked (for example, 169.254.75.191/16) form. The function will mask the address, based on the provided prefix length, before modifying the route with it.

Grant Erickson (8):
inet: Relocate 'rtnl_route_cmd2string'.
inet: Reorder IPv6 host and network route function declarations.
inet: Add IPv{4,6} host/network route functions with metric/priority.
connection: Document 'inet_get_addr_data'.
connection: Document 'inet_mask_addr_data'.
connection: Document 'inet_modify_host_or_network_route'.
connection: Document 'inet_modify_{,ipv4_,ipv6_}{host,network}_route'.
inet: Document IPv{4,6} host/network route functions with
metric/priority.

 include/inet.h |   43 +-
 src/inet.c     | 1275 ++++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 1271 insertions(+), 47 deletions(-)
Signature · 1 line
2.42.0