mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-08 14:48:10 +02:00
l3-config-data: make get_direct_route_for_host public
This commit is contained in:
parent
23a26ad2cc
commit
3f97b3b4bf
2 changed files with 9 additions and 3 deletions
|
|
@ -2514,8 +2514,10 @@ nm_l3_config_data_cmp_full(const NML3ConfigData *a,
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
static const NMPObject *
|
const NMPObject *
|
||||||
_data_get_direct_route_for_host(const NML3ConfigData *self, int addr_family, gconstpointer host)
|
nm_l3_config_data_get_direct_route_for_host(const NML3ConfigData *self,
|
||||||
|
int addr_family,
|
||||||
|
gconstpointer host)
|
||||||
{
|
{
|
||||||
const int IS_IPv4 = NM_IS_IPv4(addr_family);
|
const int IS_IPv4 = NM_IS_IPv4(addr_family);
|
||||||
const NMPObject *best_route_obj = NULL;
|
const NMPObject *best_route_obj = NULL;
|
||||||
|
|
@ -2673,7 +2675,7 @@ nm_l3_config_data_add_dependent_onlink_routes(NML3ConfigData *self, int addr_fam
|
||||||
if (NM_FLAGS_HAS(route_src->rx.r_rtm_flags, (unsigned) RTNH_F_ONLINK))
|
if (NM_FLAGS_HAS(route_src->rx.r_rtm_flags, (unsigned) RTNH_F_ONLINK))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (_data_get_direct_route_for_host(self, addr_family, p_gateway))
|
if (nm_l3_config_data_get_direct_route_for_host(self, addr_family, p_gateway))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
new_route = nmp_object_clone(obj_src, FALSE);
|
new_route = nmp_object_clone(obj_src, FALSE);
|
||||||
|
|
|
||||||
|
|
@ -225,6 +225,10 @@ nm_l3_config_data_equal(const NML3ConfigData *a, const NML3ConfigData *b)
|
||||||
|
|
||||||
/*****************************************************************************/
|
/*****************************************************************************/
|
||||||
|
|
||||||
|
const NMPObject *nm_l3_config_data_get_direct_route_for_host(const NML3ConfigData *self,
|
||||||
|
int addr_family,
|
||||||
|
gconstpointer host);
|
||||||
|
|
||||||
const NMDedupMultiIdxType *nm_l3_config_data_lookup_index(const NML3ConfigData *self,
|
const NMDedupMultiIdxType *nm_l3_config_data_lookup_index(const NML3ConfigData *self,
|
||||||
NMPObjectType obj_type);
|
NMPObjectType obj_type);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue