mbox series

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

Message ID 20231215001032.2127527-1-gerickson@nuovations.com (mailing list archive)
Headers show
Series inet: Add IPv{4,6} Host/Network Route Add/Delete with Metric / Priority Functions | expand

Message

Grant Erickson Dec. 15, 2023, 12:10 a.m. UTC
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(-)

Comments

Marcel Holtmann Dec. 15, 2023, 8:50 a.m. UTC | #1
Hi Grant,

> 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(-)

all 8 patches have been applied.

Regards

Marcel