mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-04 14:30:18 +01:00
platform: correct the type for route.pref_src
It's an IPv4 address.
This commit is contained in:
parent
5c1c577c31
commit
698f54456f
4 changed files with 6 additions and 6 deletions
|
|
@ -1189,7 +1189,7 @@ ip6_route_delete (NMPlatform *platform, int ifindex, struct in6_addr network, in
|
|||
static gboolean
|
||||
ip4_route_add (NMPlatform *platform, int ifindex, NMIPConfigSource source,
|
||||
in_addr_t network, int plen, in_addr_t gateway,
|
||||
guint32 pref_src, guint32 metric, guint32 mss)
|
||||
in_addr_t pref_src, guint32 metric, guint32 mss)
|
||||
{
|
||||
NMFakePlatformPrivate *priv = NM_FAKE_PLATFORM_GET_PRIVATE (platform);
|
||||
NMPlatformIP4Route route;
|
||||
|
|
|
|||
|
|
@ -4474,7 +4474,7 @@ _nmp_vt_cmd_plobj_to_nl_ip6_route (NMPlatform *platform, const NMPlatformObject
|
|||
static gboolean
|
||||
ip4_route_add (NMPlatform *platform, int ifindex, NMIPConfigSource source,
|
||||
in_addr_t network, int plen, in_addr_t gateway,
|
||||
guint32 pref_src, guint32 metric, guint32 mss)
|
||||
in_addr_t pref_src, guint32 metric, guint32 mss)
|
||||
{
|
||||
NMPObject obj_needle;
|
||||
auto_nl_object struct nl_object *nlo = NULL;
|
||||
|
|
|
|||
|
|
@ -2216,7 +2216,7 @@ gboolean
|
|||
nm_platform_ip4_route_add (NMPlatform *self,
|
||||
int ifindex, NMIPConfigSource source,
|
||||
in_addr_t network, int plen,
|
||||
in_addr_t gateway, guint32 pref_src,
|
||||
in_addr_t gateway, in_addr_t pref_src,
|
||||
guint32 metric, guint32 mss)
|
||||
{
|
||||
_CHECK_SELF (self, klass, FALSE);
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ struct _NMPlatformIP4Route {
|
|||
|
||||
/* RTA_PREFSRC/rtnl_route_get_pref_src(). A value of zero means that
|
||||
* no pref-src is set. */
|
||||
guint32 pref_src;
|
||||
in_addr_t pref_src;
|
||||
};
|
||||
|
||||
struct _NMPlatformIP6Route {
|
||||
|
|
@ -534,7 +534,7 @@ typedef struct {
|
|||
GArray * (*ip6_route_get_all) (NMPlatform *, int ifindex, NMPlatformGetRouteFlags flags);
|
||||
gboolean (*ip4_route_add) (NMPlatform *, int ifindex, NMIPConfigSource source,
|
||||
in_addr_t network, int plen, in_addr_t gateway,
|
||||
guint32 pref_src, guint32 metric, guint32 mss);
|
||||
in_addr_t pref_src, guint32 metric, guint32 mss);
|
||||
gboolean (*ip6_route_add) (NMPlatform *, int ifindex, NMIPConfigSource source,
|
||||
struct in6_addr network, int plen, struct in6_addr gateway,
|
||||
guint32 metric, guint32 mss);
|
||||
|
|
@ -738,7 +738,7 @@ GArray *nm_platform_ip4_route_get_all (NMPlatform *self, int ifindex, NMPlatform
|
|||
GArray *nm_platform_ip6_route_get_all (NMPlatform *self, int ifindex, NMPlatformGetRouteFlags flags);
|
||||
gboolean nm_platform_ip4_route_add (NMPlatform *self, int ifindex, NMIPConfigSource source,
|
||||
in_addr_t network, int plen, in_addr_t gateway,
|
||||
guint32 pref_src, guint32 metric, guint32 mss);
|
||||
in_addr_t pref_src, guint32 metric, guint32 mss);
|
||||
gboolean nm_platform_ip6_route_add (NMPlatform *self, int ifindex, NMIPConfigSource source,
|
||||
struct in6_addr network, int plen, struct in6_addr gateway,
|
||||
guint32 metric, guint32 mss);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue